Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!