Hi Nicola,
head=fscanf(fid,'%d',11)
you are constantly changing the value of head, not incrementing it. Try: -
fid=fopen(name,'r');
x=1;
while ~(feof(fid)),
head(x)=fscanf(fid,'%d',11)
x=x+1;
if ~(isempty(head)),
m=head(4)
end
end
fclose(fid)
Info
此问题已关闭。 请重新打开它进行编辑或回答。
此问题已关闭。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!