how can i create a loop which reads rows in an array?
1 回表示 (過去 30 日間)
古いコメントを表示
I want to create a loop which read each row in an array. the array have dimensions of 90x2.
0 件のコメント
採用された回答
Image Analyst
2015 年 3 月 17 日
[rows, columns] = size(array);
for row = 1 : rows
thisRow = array(row, :) % No ; so it will echo to command window.
% Now do something with thisRow.....
end
4 件のコメント
Image Analyst
2015 年 3 月 17 日
Try
if all(thisRow == rowFromV)
To format your code, read this: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!