フィルターのクリア

Load many files from the same folder using the each letter from the alphabet as a file name

2 ビュー (過去 30 日間)
Hi I want to load many files from the same folder using the each letter from the alphabet as a file name is it possible?
I'm uipickfiles to choose my files (<http://www.mathworks.com/matlabcentral/fileexchange/10867-uipickfiles-uigetfile-on-steroids)>. Below is my code where NR(ii) is trying to take f.ex. NR(1) = A and say that the files name is A and then load it. I always get a error but is it possible?
q1 = input('Number of objects observed? ');
if q1 <= 18 %18 is the max
q1 = 2*q1;
else
disp(['One fish was automatically choosen.']);
q1 = 2;
end
files = uipickfiles('num',q1,'out','ch');
NR = 'ABCDEFGHIJKLMNOPQRSTUVXZ';
for ii = 1:q1
NR(ii) = load(files(ii,:));
end

採用された回答

Walter Roberson
Walter Roberson 2013 年 1 月 16 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by