multiple loop do not loop

1 次查看(过去 30 天)
Khairul nur
Khairul nur 2021-1-13
回答: Matt J 2021-1-13
i have this data table :
1 6
2 5
3 8
4 4
5 7
6 9
i used this code to read the table from 1st col to 2nd col. However, the loop doesnt read for 2nd loop.
for n1=i:noofcol
for n2=j:noofrow
data(j,i)
j=j+1;
end
i=i+1
end

采纳的回答

Matt J
Matt J 2021-1-13
for i=1:noofcol
for j=1:noofrow

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by