???error: Assignment has more non-singleton rhs dimensions than non-singleton subscripts.
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 11 de Abr. de 2012
0 votos
What you show is going to give you a problem unless importdata() happens to import exactly one value.
1 comentario
dee koshy
el 11 de Abr. de 2012
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!