how to do this array problem matlab
1 回表示 (過去 30 日間)
古いコメントを表示
z=[2j;-pi/2;3]
https://www.dropbox.com/s/kdttn8irinpf8xr/Screenshot%202015-03-21%2023.06.02.png?dl=0
sqrt(zk) where zk is the kth element of array z.
2 件のコメント
Geoff Hayes
2015 年 3 月 22 日
HIGH - please describe in detail what problem you are attempting to solve. Instead of posting a link to an image, describe it in worlds.
採用された回答
Naty S
2015 年 3 月 22 日
Hey HIGH If I understand you correctly you want to sum the square value of a vector. Check the functions sum and sqrt http://www.mathworks.com/help/matlab/ref/sum.html?searchHighlight=sum http://www.mathworks.com/help/matlab/ref/sqrt.html?searchHighlight=sqrt
d=sum(sqrt(z(k:3)))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!