资源简介
matlab自动提取figure中的数据-figexportdata.rar
在matlab应用的过程中,发现网上所提供figure数据的方法只能提取一副图像的一条曲线,对于利用 subplot所绘制的多子图多曲线好像都不太好用,经过仔细研究,我将这方法写成了一个文件的形式,在平时的数据提取中比较有用,因此和各位朋友共享,使用方法请见m文件说明
在matlab应用的过程中,发现网上所提供figure数据的方法只能提取一副图像的一条曲线,对于利用 subplot所绘制的多子图多曲线好像都不太好用,经过仔细研究,我将这方法写成了一个文件的形式,在平时的数据提取中比较有用,因此和各位朋友共享,使用方法请见m文件说明

代码片段和文件信息
function figexport_tb
%%%%This file is edited by Jinguang Hao Jinguang_hao@126.com
%%%%The purpose of the m files is to exact the data from figure file
%%%unlike the common methods on the website such as the following code :
%%%%h =
%%%%findobj(gca‘Type‘‘line‘);xdata=get(h‘XData‘);ydata=get(h‘YData‘);
%%%(Because the method only can exact the data from one figure with one curve and under the subfigure senario the method can not work)
%%%The provided files (processfig.p figdataexport.p and the figexport_tb.m) can overcome the above drawbacks;
%%%%In addtion three different figure files are also given for test
%%%%purpose.
%%%If any bugs or questions please contact me by email.
% %%%generate figures under different scenarios
% x=0:10;
% y0=cos(0.2*pi*x);
% y1=sin(0.2*pi*x);
% y2=0.5*cos(0.2*pi*x);
% y3=0.5*sin(0.2*pi*x);
% %%%scenario 1: plot one curve
% figure(1);
% plot(xy0);
% %%%scenario 2: plot two curves in the figure
% figure(2);
% plot(xy0xy1);
% %%scenario 3: subplot the 4 figures and two curves in each subfigure
% figure(3);
% subplot(211);
% plot(xy0xy1);
% subplot(212);
% plot(xy2xy3);
%%%execute the figdtaexport function
figdataexport(‘test2.fig‘);
%%%and then plot the figure to verify the function exatracting the variable
%%%named ‘curve***‘ in workspace
%%%%%example for test3.fig
%%%%%plot(curve001(1:)curve001(2:)curve002(1:)curve002(2:));
%%%
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 161 2015-03-01 13:53 figdataexport.p
文件 1231 2015-03-01 13:58 figexport_tb.asv
文件 1466 2015-03-01 14:00 figexport_tb.m
文件 419 2015-03-01 13:52 processfig.p
文件 1573 2015-03-01 13:44 test1.fig
文件 1896 2015-03-01 13:44 test2.fig
文件 3215 2015-03-01 13:44 test3.fig
----------- --------- ---------- ----- ----
9961 7
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论