matlab中读取图中数据 并将其写入文本
2012-11-12 20:02
357 查看
h=open('F:\rand.fig');
a=get(h);
b=get(a.Children);
c=get(b.Children);
xx=c.XData;
yy=c.YData;
fid=fopen('F:\rand.txt','w');
[b1]=size(yy,2)
for i=1:b1
fprintf(fid,'%15g',yy(i));
fprintf(fid,'\r\n');
end
fclose(fid);
a=get(h);
b=get(a.Children);
c=get(b.Children);
xx=c.XData;
yy=c.YData;
fid=fopen('F:\rand.txt','w');
[b1]=size(yy,2)
for i=1:b1
fprintf(fid,'%15g',yy(i));
fprintf(fid,'\r\n');
end
fclose(fid);
相关文章推荐
- Matlab处理读取ASCII文本数据找到规则需求,重新写入数据到新的文本文件[示例:有限元边界条件施加]
- MATLAB读取写入文本数据最佳方法 | Best Method for Loading & Saving Text Data Using MATLAB
- MATLAB-文本数据读取
- matlab读取写入图像数据格式uint8,double
- 利用MATLAB将文本中的数据写入Excel
- matlab中读取txt数据文件(txt文本文档)
- matlab读取excel中数据和文本混合的表项,但又要提取出数据
- 数据读取(SQL)与文本写入(fileStream)
- Matlab 读取dat文件(包含几行多余文本,数据带有数字和字符串,且以逗号分隔)
- matlab中读取txt数据文件(txt文本文档)
- matlab写入和读取文件数据
- python3将csv文件中的两列数据读取出来,并且按行写入txt文本之中
- MATLAB小技:从文本数据第N行开始读取
- 在Matlab中读取、写入二进制数据文件
- matlab读取写入图像数据格式uint8,double
- 常用的testbench和matlab代码之读取和写入文本代码
- matlab读取写入图像数据格式uint8,double
- matlab读取写入图像数据格式uint8,double
- python读取文本数据写入到数据库及查询优化
- 在Matlab中读取、写入二进制数据文件