MATLAB2014a报错Caught "std::exception" Exception message is
在保存数据时时间一长就这样错误就不算了,就是我在迭代计算的时候,算一步保存一步结果,现在的情况是前面算了好几百不,然后就出现这样的错误
Caught "std::exception" Exception message is:
Message Catalog MATLAB:FileIO was not loaded from the file. Please check file location, format or contents
保存的程序是这样的:
data=full([x',Ax',Ay',T']);
str= [date,'suduRe392_20_200_44g_dmax_16_16_1n4_1t2_A02_M2_time_00002(' num2str(time) ').dat'];
fid=fopen(str,'wt');
[m,n]=size(data);
for ii=1:m
for jj=1:n
fprintf(fid,'%f\t',data(ii,jj));
end
fprintf(fid,'\n');
end 返回小木虫查看更多
今日热帖
首先记住,fopen打开文件,写完后一定要关闭fclose;
那我在加一行这个?
fid=fopen(str,'wt');
fclose(fid);
,
万分感谢,明白了