how to do this array problem matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Geoff Hayes
am 22 Mär. 2015
HIGH - please describe in detail what problem you are attempting to solve. Instead of posting a link to an image, describe it in worlds.
Akzeptierte Antwort
Naty S
am 22 Mär. 2015
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)))
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!