clear
[rdf_name,prd]=uigetfile( '*.csv','ファイルの指定','multiselect','on');
cd(prd);
if iscell(rdf_name)==0; rdf_name={rdf_name};end
fnumend = size(rdf_name,2);
disp(rdf_name);
m = 79; n = 14;
data = zeros(m,n,fnumend);
for i = 1:fnumend
data(:,:,i) = read_data(rdf_name{i},m,n);
end
function data_matrix = read_data(fname,m,n)
data_matrix = readmatrix(fname,'Range',[2,2,m+1,n+1]);
end
3 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/482999-excel#comment_752394
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/482999-excel#comment_752394
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/482999-excel#comment_753720
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/482999-excel#comment_753720
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/482999-excel#comment_755054
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/482999-excel#comment_755054
Sign in to comment.