阅读背景:

使用matlab在没有for循环的情况下操作向量中的每个元素

来源:互联网 

I'm trying to write some code in matlab that will manipulate each element in a vector and will also return a vector. So basically if I have a vector x = [1 2 3 4 5]'; I would like to perform 2 * x(i) * i, where i is the ith element in the vector. And return y = [2 8 18 32 50]';I'm trying to write some code in matlab that wi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: