필터 지우기
필터 지우기

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 CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by