what is the word need to fill in this blank
2 ビュー (過去 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 で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!