91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-28
  • 語(yǔ)言: Matlab
  • 標(biāo)簽: matlab??

資源簡(jiǎn)介

matlab自動(dòng)提取figure中的數(shù)據(jù)-figexportdata.rar
在matlab應(yīng)用的過(guò)程中,發(fā)現(xiàn)網(wǎng)上所提供figure數(shù)據(jù)的方法只能提取一副圖像的一條曲線,對(duì)于利用 subplot所繪制的多子圖多曲線好像都不太好用,經(jīng)過(guò)仔細(xì)研究,我將這方法寫成了一個(gè)文件的形式,在平時(shí)的數(shù)據(jù)提取中比較有用,因此和各位朋友共享,使用方法請(qǐng)見m文件說(shuō)明

資源截圖

代碼片段和文件信息

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


?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????????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


評(píng)論

共有 條評(píng)論