MATLAB: Select row and iterate for next rows

bldc motorpropeller

I have 100 rows and 4 columns of data. I want to go row by row, extract data, assign each column for parameters and do calculation and store as output. Similarly, I need to select next rows and so on. From all outputs, I need to select the least value. For that least output, I need to get the row number also.

Best Answer

A=randi(100,100,4)
[n,m]=size(A)
for k=1:n % loop each row
r=A(k,:) % get the kth row
% Do
end
Related Question