what is the word need to fill in this blank
1 次查看(过去 30 天)
显示 更早的评论
If x is a vector, and you want to define a variable y according to the equation Y=2X^2, you would need to use array operations. The expression to define y would be:
0 个评论
回答(1 个)
per isakson
2017-10-15
编辑:per isakson
2017-10-15
>> x = 1:4;
>> y = 2*x.^2
y =
2 8 18 32
But wouldn't it had been better to find this in the documentation? Searching the documentation is an essential part of using Matlab. See
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!