I want to use fonction (find) to return many values,but why he just returns the least value ? thank you
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
d={ 'a12' ;'a15';'a16';'a14';'a13';'a11'}; H={ 'a11';'a13';'a12' ;'a15';'a16';'a14';'a13'} ; for i=1:1:7 c=find(strcmp(d,H(i)));
end
0 件のコメント
回答 (1 件)
Julia
2014 年 10 月 1 日
1 投票
Hi,
c is overwritten in each loop iteration.
Define c as a matrix and you can store each result in a line of this matrix.
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!