how to do this array problem matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Geoff Hayes
il 22 Mar 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.
Risposta accettata
Naty S
il 22 Mar 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)))
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!