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!