Array Indexing with For Loop
이전 댓글 표시
Hello all,
Ive a simple problem that probably has a simple solution that I cant quite grasp as I am a bit of a novice.
I have an array of size 103x15, through which I have some negative values. I want to extract the position of these values into another array so that I can highlight and then total them up and find the percentage of negative values as a proportion of all the data.
Thank you!
for n=1:length(X)
neg=find(X(n,1:15)<0)
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!