How do i increase the number value in " "
1 回表示 (過去 30 日間)
古いコメントを表示
I have
a file to read multiple folder by looking at the number
%Image number set
number = "1"
[first,second,third,fourth,five]= returnFiles(number);
%The function
function [first,second,third,fourth,five] = returnFiles(number)
.....
How do I keep looping and increase the number to read multiple file
0 件のコメント
採用された回答
Walter Roberson
2021 年 8 月 9 日
for K = 1 : 50
number = string(K);
[first,second,third,fourth,five] = returnFiles(number);
end
2 件のコメント
Rik
2021 年 8 月 9 日
It creates a vector from 1 to 50. Combining it with the for keyword means it will execute the contents of the loop with each value of that vector stored in K.
Any Matlab tutorial will have taught you this. I would highly encourage you to do one.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!