???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!