亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? matlab實(shí)用程序百例3.txt

?? MATLAB實(shí)用程序的100個具體例子,覆蓋面很廣,絕對超值
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
h1=axes('parent',h0,...
    'position',[0.10 0.45 0.8 0.5],...
    'visible','off');
x=0:0.2:2*pi;
y=sin(x);
plot(x,y)
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','拉格朗日插值',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 60 70 20],...
    'callback',[...
        'cla,',...
        'strn=get(e1,''string'');,',...
        'n=str2num(strn);,',...
        'i=1;,',...
        'x=0:0.2:2*pi;,',...
        'for t=0:0.2:2*pi,',...
        'y(i)=sin(t);,',...
        'L(i)=lag(t,n);,',...
        'i=i+1;,',...
        'end,',...
        'plot(x,y,''b*'',x,L,''r-''),',...
        'legend(''sin(x)'',''插值函數(shù)'');,',...
        'axis([0 7 -1.5 1.5])']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','誤差比較',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 60 70 20],...
    'callback',[...
        'strn=get(e1,''string'');,',...
        'n=str2num(strn);,',...
        'strm=get(e2,''string'');,',...
        'm=str2num(strm);,',...
        'dd=abs(sin(m)-lag(m,n));,',...
        'msgbox([''誤差為:'',num2str(dd)],''計算結(jié)果'')']);
e1=uicontrol('parent',h0,...
    'units','points',...
    'tag','e1',...
    'style','edit',...
    'fontsize',12,...
    'string','5',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[50 100 40 20]);
e2=uicontrol('parent',h0,...
    'units','points',...
    'tag','e2',...
    'style','edit',...
    'fontsize',12,...
    'string','1.20',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[200 100 40 20]);
t1=uicontrol('parent',h0,...
    'units','points',...
    'tag','t1',...
    'style','text',...
    'string','階數(shù):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 100 30 20]);
t2=uicontrol('parent',h0,...
    'units','points',...
    'tag','t2',...
    'style','text',...
    'string','誤差點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[160 100 40 20]);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','關(guān)閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 20 60 20],...
    'callback','close');
例86:三次樣條插值法

h0=figure('toolbar','none',...
    'position',[200 50 350 450],...
    'name','實(shí)例86');
h1=axes('parent',h0,...
    'position',[0.10 0.45 0.8 0.5],...
    'visible','off');
x=0:0.2:2*pi;
y=sin(x);
plot(x,y)
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','三次樣條插值',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 60 70 20],...
    'callback',[...
        'y=0,',...
        'sy=0,',...
        'strn1=get(e2,''string'');,',...
        'n1=str2num(strn1);,',...
        'strn2=get(e3,''string'');,',...
        'n2=str2num(strn2);,',...
        'x=n1:0.2:n2;,',...
        'i=1;,',...
        'for t=n1:0.2:n2,',...
        'y(i)=sin(t);,',...
        'sy(i)=san(t,n1,n2);,',...
        'i=i+1;,',...
        'end,',...
        'plot(x,y,''b*'',x,sy,''r-''),',...
        'axis([0 7 -1.5 1.5]),',...
        'legend(''sin(x)'',''N-Hermite插值'')']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','誤差比較',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 60 70 20],...
    'callback',[...
        'strdn1=get(e2,''string'');,',...
        'n1=str2num(strdn1);,',...
        'strdn2=get(e3,''string'');,',...
        'n2=str2num(strdn2);,',...
        'strdn=get(e1,''string'');,',...
        'dn=str2num(strdn);,',...
        'dd=abs(sin(dn)-san(dn,n1,n2));,',...
        'msgbox([''誤差為:'',num2str(dd)],''計算結(jié)果'')']);
e1=uicontrol('parent',h0,...
    'units','points',...
    'tag','e1',...
    'style','edit',...
    'fontsize',12,...
    'string','1.20',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[200 100 40 20]);
t1=uicontrol('parent',h0,...
    'units','points',...
    'tag','t1',...
    'style','text',...
    'string','誤差點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[160 100 40 20]);
e2=uicontrol('parent',h0,...
    'units','points',...
    'tag','e2',...
    'style','edit',...
    'fontsize',12,...
    'string','1.00',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[20 85 40 20]);
t2=uicontrol('parent',h0,...
    'units','points',...
    'tag','t2',...
    'style','text',...
    'string','第一節(jié)點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[15 105 50 20]);
e3=uicontrol('parent',h0,...
    'units','points',...
    'tag','e3',...
    'style','edit',...
    'fontsize',12,...
    'string','3.00',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[100 85 40 20]);
t3=uicontrol('parent',h0,...
    'units','points',...
    'tag','t3',...
    'style','text',...
    'string','第二節(jié)點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[95 105 50 20]);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','關(guān)閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 20 60 20],...
    'callback','close');
實(shí)例87:NEWTON插值

h0=figure('toolbar','none',...
    'position',[200 50 350 450],...
    'name','實(shí)例87');
h1=axes('parent',h0,...
    'position',[0.10 0.45 0.8 0.5],...
    'visible','off');
x=0:0.2:2*pi;
y=sin(x);
plot(x,y)
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','牛頓插值',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 60 70 20],...
    'callback',[...
        'strn=get(e1,''string'');,',...
        'n=str2num(strn);,',...
        'x=0:0.2:2*pi;,',...
        'i=1;,',...
        'for t=0:0.2:2*pi,',...
        'y(i)=sin(t);,',...
        'ynt(i)=newton(t,n);,',...
        'i=i+1;,',...
        'end,',...
        'plot(x,y,''b*'',x,ynt,''r-''),',...
        'axis([0 7 -1.5 1.5]),',...
        'legend(''sin(x)'',''牛頓插值'')']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','誤差比較',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 60 70 20],...
    'callback',[...
        'strn=get(e1,''string'');,',...
        'n=str2num(strn);,',...
        'strdn=get(e2,''string'');,',...
        'dn=str2num(strdn);,',...
        'dd=abs(sin(dn)-newton(dn,n));,',...
        'msgbox([''誤差為:'',num2str(dd)],''計算結(jié)果'')']);
e1=uicontrol('parent',h0,...
    'units','points',...
    'tag','e1',...
    'style','edit',...
    'fontsize',12,...
    'string','5',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[50 100 40 20]);
e2=uicontrol('parent',h0,...
    'units','points',...
    'tag','e2',...
    'style','edit',...
    'fontsize',12,...
    'string','1.20',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[200 100 40 20]);
t1=uicontrol('parent',h0,...
    'units','points',...
    'tag','t1',...
    'style','text',...
    'string','節(jié)點(diǎn)數(shù):(<6)',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[10 100 40 30]);
t2=uicontrol('parent',h0,...
    'units','points',...
    'tag','t2',...
    'style','text',...
    'string','誤差點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[160 100 40 20]);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','關(guān)閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 20 60 20],...
    'callback','close');
實(shí)例88:hermite插值

h0=figure('toolbar','none',...
    'position',[200 50 350 450],...
    'name','實(shí)例88');
h1=axes('parent',h0,...
    'position',[0.10 0.45 0.8 0.5],...
    'visible','off');
x=0:0.2:2*pi;
y=sin(x);
plot(x,y)
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','Hermite插值',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 60 70 20],...
    'callback',[...
        'strn1=get(e2,''string'');,',...
        'n1=str2num(strn1);,',...
        'strn2=get(e3,''string'');,',...
        'n2=str2num(strn2);,',...
        'x=0:0.2:2*pi;,',...
        'i=1;,',...
        'for t=0:0.2:2*pi,',...
        'y(i)=sin(t);,',...
        'ynt(i)=hermite(t,n1,n2);,',...
        'i=i+1;,',...
        'end,',...
        'plot(x,y,''b*'',x,ynt,''r-''),',...
        'axis([0 7 -1.5 1.5]),',...
        'legend(''sin(x)'',''Hermite插值'')']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','誤差比較',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 60 70 20],...
    'callback',[...
        'strn1=get(e2,''string'');,',...
        'n1=str2num(strn1);,',...
        'strn2=get(e3,''string'');,',...
        'n2=str2num(strn2);,',...
        'dn=str2num(strdn);,',...
        'dd=abs(sin(dn)-hermite(dn,n1,n2));,',...
        'msgbox([''誤差為:'',num2str(dd)],''計算結(jié)果'')']);
e1=uicontrol('parent',h0,...
    'units','points',...
    'tag','e1',...
    'style','edit',...
    'fontsize',12,...
    'string','1.20',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[200 100 40 20]);
t1=uicontrol('parent',h0,...
    'units','points',...
    'tag','t1',...
    'style','text',...
    'string','誤差點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[160 100 40 20]);
e2=uicontrol('parent',h0,...
    'units','points',...
    'tag','e2',...
    'style','edit',...
    'fontsize',12,...
    'string','1.00',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[20 85 40 20]);
t2=uicontrol('parent',h0,...
    'units','points',...
    'tag','t2',...
    'style','text',...
    'string','第一節(jié)點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[15 105 50 20]);
e3=uicontrol('parent',h0,...
    'units','points',...
    'tag','e3',...
    'style','edit',...
    'fontsize',12,...
    'string','3.00',...
    'horizontalalignment','right',...
    'backgroundcolor',[1 1 1],...
    'position',[100 85 40 20]);
t3=uicontrol('parent',h0,...
    'units','points',...
    'tag','t3',...
    'style','text',...
    'string','第二節(jié)點(diǎn):',...
    'fontsize',12,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[95 105 50 20]);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','關(guān)閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 20 60 20],...
    'callback','close');
實(shí)例89:mewton形式的hermite插值

h0=figure('toolbar','none',...
    'position',[200 50 350 450],...
    'name','實(shí)例89');
h1=axes('parent',h0,...
    'position',[0.10 0.45 0.8 0.5],...
    'visible','off');
x=0:0.2:2*pi;
y=sin(x);
plot(x,y)
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','N-Hermite插值',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 60 70 20],...
    'callback',[...
        'strn1=get(e2,''string'');,',...
        'n1=str2num(strn1);,',...
        'strn2=get(e3,''string'');,',...
        'n2=str2num(strn2);,',...
        'x=0:0.2:2*pi;,',...
        'i=1;,',...
        'for t=0:0.2:2*pi,',...
        'y(i)=sin(t);,',...
        'ynh(i)=nhermite(t,n1,n2);,',...
        'i=i+1;,',...
        'end,',...
        'plot(x,y,''b*'',x,ynh,''r-''),',...
        'axis([0 7 -1.5 1.5]),',...
        'legend(''sin(x)'',''N-Hermite插值'')']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','誤差比較',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 60 70 20],...
    'callback',[...
        'strdn1=get(e2,''string'');,',...
        'n1=str2num(strdn1);,',...
        'strdn2=get(e3,''string'');,',...
        'n2=str2num(strdn2);,',...
        'strdn=get(e1,''string'');,',...

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费在线观看视频一区| 7777精品伊人久久久大香线蕉完整版 | 97se狠狠狠综合亚洲狠狠| 国产在线视视频有精品| 久久综合综合久久综合| 日本欧洲一区二区| 久久国产精品色| 国产大陆a不卡| 成人激情图片网| 97久久人人超碰| 91视频免费播放| 色嗨嗨av一区二区三区| 欧美亚洲愉拍一区二区| 欧美日韩一区二区三区免费看| 欧美综合天天夜夜久久| 欧美片在线播放| 欧美一区二区高清| 2021久久国产精品不只是精品| 日韩免费视频线观看| 亚洲精品在线观看视频| 国产亚洲欧洲997久久综合 | 久久久国际精品| 国产精品乱码一区二区三区软件 | 91精品国产综合久久精品| 在线播放一区二区三区| 日韩一区二区免费在线电影| 精品三级av在线| 国产欧美日韩一区二区三区在线观看| 国产精品国产自产拍高清av| 亚洲视频资源在线| 日韩精品亚洲专区| 国产一区二区精品久久| av成人动漫在线观看| 欧美午夜寂寞影院| 日韩欧美不卡在线观看视频| 久久久久久一二三区| 亚洲精品中文字幕在线观看| 午夜影院在线观看欧美| 国产精品一区二区在线播放| 99视频热这里只有精品免费| 欧美网站大全在线观看| 日韩你懂的在线播放| 国产精品无人区| 亚洲一区二区三区精品在线| 麻豆精品国产传媒mv男同| 成人午夜视频在线观看| 欧美日韩一区中文字幕| 久久综合久久99| 一区二区欧美在线观看| 美日韩一区二区| 91小视频在线| 日韩欧美卡一卡二| 成人欧美一区二区三区1314| 日韩精品午夜视频| 99久久免费精品| 日韩欧美另类在线| 一区二区三区国产精华| 国产成人在线视频网址| 国产在线精品免费| 欧美日韩在线三区| 亚洲国产成人私人影院tom| 午夜电影一区二区| av电影一区二区| 亚洲精品一区二区三区香蕉| 亚洲一区二区三区小说| 成人精品免费视频| 精品国产欧美一区二区| 亚洲高清在线精品| av一区二区不卡| 久久天堂av综合合色蜜桃网| 亚洲影视在线播放| proumb性欧美在线观看| 精品国产免费一区二区三区四区| 亚洲国产综合在线| 本田岬高潮一区二区三区| 欧美成人一区二区| 午夜精品久久久久久久久久 | 久久免费美女视频| 日本特黄久久久高潮| 在线精品视频一区二区三四| 国产精品天美传媒沈樵| 国内一区二区视频| 欧美一区二区福利在线| 午夜精品久久久久久久久久 | 717成人午夜免费福利电影| 一区二区三区在线视频免费 | 欧美一级高清片| 午夜欧美一区二区三区在线播放| 91片在线免费观看| 一区在线观看免费| 国产白丝精品91爽爽久久| 2021国产精品久久精品| 久久99精品网久久| 欧美电影免费观看完整版| 婷婷综合另类小说色区| 欧美日韩一区高清| 艳妇臀荡乳欲伦亚洲一区| 91视频在线观看免费| 国产精品久久久久久久久动漫| 国产成人自拍网| 日本一区二区三区电影| 高清在线不卡av| 国产亚洲欧美激情| 国产传媒一区在线| 国产精品免费久久| hitomi一区二区三区精品| 国产精品网站一区| 97超碰欧美中文字幕| 国产精品久久久久久久久图文区 | 中文字幕中文字幕一区| 成人国产视频在线观看| 中文字幕av在线一区二区三区| 国产成人精品三级| 国产精品视频一区二区三区不卡| 成人一道本在线| 1000精品久久久久久久久| 91香蕉视频污在线| 亚洲永久精品国产| 日韩一级欧美一级| 韩国av一区二区三区| 国产精品网友自拍| 日本精品视频一区二区| 五月激情六月综合| 亚洲精品一区二区三区在线观看 | 一本大道av一区二区在线播放| 亚洲综合在线五月| 欧美三级资源在线| 美女视频黄频大全不卡视频在线播放| 欧美大片日本大片免费观看| 国产一区二区三区最好精华液| 久久久99久久| 一本色道久久加勒比精品| 亚洲成a人片综合在线| 日韩免费观看高清完整版| 国产一区二区三区四| 国产精品天美传媒沈樵| 欧美手机在线视频| 极品美女销魂一区二区三区 | 久久久久青草大香线综合精品| 成人免费黄色大片| 午夜视频在线观看一区| 久久久久久久久久久久久夜| 91麻豆精东视频| 蜜臀精品一区二区三区在线观看| 久久久一区二区| 在线免费观看不卡av| 经典三级视频一区| 一区二区三区中文字幕| 欧美v国产在线一区二区三区| 成人性色生活片免费看爆迷你毛片| 亚洲蜜臀av乱码久久精品| 日韩免费一区二区| 91美女福利视频| 黄色成人免费在线| 亚洲一区二区3| 国产三级精品在线| 欧美日韩高清影院| 成人短视频下载| 奇米影视一区二区三区小说| 18欧美亚洲精品| 欧美成人精品福利| 在线精品视频免费播放| 国产一区不卡在线| 性感美女极品91精品| 国产精品久久一级| 日韩亚洲电影在线| 在线观看国产一区二区| 国产精品一级在线| 青青草国产精品亚洲专区无| 亚洲天堂中文字幕| 久久先锋资源网| 日韩一区二区三区视频在线观看| 97精品久久久午夜一区二区三区| 蜜乳av一区二区| 亚洲综合色区另类av| 国产精品久久久久影院亚瑟| 亚洲精品在线三区| 欧美一区日本一区韩国一区| 91亚洲精品一区二区乱码| 国产精品一区二区91| 蜜桃在线一区二区三区| 亚洲午夜精品在线| 亚洲视频你懂的| 亚洲国产精品二十页| 精品国产伦一区二区三区免费| 欧美区在线观看| 欧美婷婷六月丁香综合色| 成人h动漫精品一区二| 国产精品1区2区| 久草中文综合在线| 日韩成人一级大片| 午夜精品久久一牛影视| 亚洲综合激情网| 一区二区三区**美女毛片| 亚洲欧美激情小说另类| 国产精品久久久久久久久动漫| 日本一区二区三区免费乱视频 | 一区二区三国产精华液| 有码一区二区三区| 亚洲三级在线播放|