Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Vanessa Lopez
el 7 de Abr. de 2021
Comentada: Vanessa Lopez
el 7 de Abr. de 2021
flag = 1;
n = 1;
while flag == 1
if feof(fid)
flag=-1;
else
tmp = fgets(fid);
while size(tmp,2) < columnwidth;tmp = [tmp,' '];end
subjectID(n,:)=tmp;n=n+1;
end
end
Recieving this error regarding subjectID(n,:)=tmp;n=n+1;
Ran this script/code previously in Matlab2019 so unsure if this might be why this issue is arising now? Any insight would be greatly appreciated!
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!