フィルターのクリア

How can I assign a variabe name for 10 jpg files in a for loop?

1 回表示 (過去 30 日間)
AJ516
AJ516 2017 年 6 月 9 日
編集済み: Honglei Chen 2017 年 6 月 9 日
With using a for loop to open ten photos for overlapping, what would be good layout for a for loop to open 10 photos to assign a variable per photo? The jpg files are name accordingly to a numerical order (A001.jpg to A010.jpg).

回答 (1 件)

Honglei Chen
Honglei Chen 2017 年 6 月 9 日
編集済み: Honglei Chen 2017 年 6 月 9 日
Something like this might work for you
for m = 1:10
filename = sprintf('A%03d.jpg',m);
imread(filename,'jpg');
end
HTH

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by