MATLAB Answers

how can i create a loop which reads rows in an array?

1 view (last 30 days)
ME on 16 Mar 2015
Commented: Image Analyst on 17 Mar 2015
I want to create a loop which read each row in an array. the array have dimensions of 90x2.

Accepted Answer

Image Analyst
Image Analyst on 17 Mar 2015
[rows, columns] = size(array);
for row = 1 : rows
thisRow = array(row, :) % No ; so it will echo to command window.
% Now do something with thisRow.....

Sign in to comment.

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!