???error: Assignment has more non-singleton rhs dimensions than non-singleton subscripts.
古いコメントを表示
g=fileread ('e:\dfiles\a(3).dat');
f=['e:' filesep 'dataf'];
x=size(g,1);y=size(g,2);
a=dir(f);
data(x,y,6)=zeros(1,1,1);
j=0;
for i=3:8
j=j+1;
data(x,y,j)=importdata(fullfile(f,a(i).name)); // error in this line
end
採用された回答
その他の回答 (1 件)
Walter Roberson
2012 年 4 月 11 日
0 投票
What you show is going to give you a problem unless importdata() happens to import exactly one value.
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!