Ältere Kommentare anzeigen
日付ごとのフォルダがあり、フォルダごとに同じ作業を繰り返したいのですが、どうすればいいですか。
たとえばA,B,Cという3つのディレクトリがあり,下のようにそれぞれのディレクトリで同じ作業を行いたいです。
sdir = ['A','B','C'];
for n=1:3
cd sdir(n)
% 何かしらの作業。例えば、
I=dir('*.jpg');
size(I);
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 検索パス finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!