欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
matlab實(shí)用程序百例(9)
圖像類(lèi)型轉換
              h0=figure('toolbar','none',...
                  'position',[198 56 350 468],...
                  'name','實(shí)例82');
              h1=axes('parent',h0,...
                  'position',[0.2 0.45 0.5 0.5],...
                  'visible','off');
              load earth
              clims = [10 60];
              b1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b1',...
                  'style','pushbutton',...
                  'string','強度圖像',...
                  'position',[30 120 50 20],...
                  'callback',[...
                      'cla,',...
                      'imagesc(X,clims),',...
                      'colormap(gray)']);
              b2=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b2',...
                  'style','pushbutton',...
                  'string','索引圖像',...
                  'position',[100 120 50 20],...
                  'callback',[...
                      'cla,',...
                      'image(X),',...
                      'colormap(map),',...
                      'axis image']);
              b3=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b3',...
                  'style','pushbutton',...
                  'string','真彩圖像',...
                  'position',[170 120 50 20],...
                  'callback',[...
                      'cla,',...
                      'image(X),',...
                      'axis image']);
              b4=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b4',...
                  'style','pushbutton',...
                  'string','關(guān)閉',...
                  'position',[100 50 50 20],...
                  'callback','close');
特殊的圖像顯示技術(shù)
              h0=figure('toolbar','none',...
                  'position',[198 56 350 468],...
                  'name','實(shí)例83');
              h1=axes('parent',h0,...
                  'position',[0.25 0.45 0.5 0.5],...
                  'visible','off');
              b1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b1',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','顏色條',...
                  'position',[30 120 50 20],...
                  'callback',[...
                      'cla,',...
                      'I = imread(''plane.jpg'');,',...
                      'imshow(I),',...
                      'colorbar']);
              b2=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b2',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'position',[100 120 50 20],...
                  'string','單幀顯示',...
                  'callback',[...
                      'cla,',...
                      'load mri,',...
                      'imshow(D(:,:,:,7))']);
              b3=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b3',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','動(dòng)畫(huà)顯示',...
                  'position',[30 60 50 20],...
                  'callback',[...
                      'cla,',...
                      'load mri,',...
                      'montage(D,map),',...
                      'mov=immovie(D,map);,',...
                      'colormap(map),',...
                      'movie(mov)']);
              b4=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b4',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','紋理映射',...
                  'position',[170 60 50 20],...
                  'callback',[...
                      'cla,',...
                      '[x,y,z] = cylinder;,',...
                      'I = imread(''girls.jpg'');,',...
                      'warp(x,z,y,I);']);
              b5=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b5',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','關(guān)閉',...
                  'position',[100 60 50 20],...
                  'callback','close');
              b6=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b6',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','多幀顯示',...
                  'position',[170 120 50 20],...
                  'callback',[...
                      'cla,',...
                      'load mri,',...
                      'montage(D,map)']);
圖像的幾何操作
              h0=figure('toolbar','none',...
                  'position',[198 56 400 468],...
                  'name','實(shí)例84');
              h1=axes('parent',h0,...
                  'position',[0.25 0.45 0.5 0.5],...
                  'visible','off');
              I=imread('plane.jpg','jpg');
              imshow(I)
              b1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b1',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','圖像旋轉',...
                  'position',[200 120 50 20],...
                  'callback',[...
                      'cla,',...
                      'k=str2num(get(e1,''string''));,',...
                      'I=imread(''plane.jpg'',''jpg'');,',...
                      'J=imrotate(I,k,''bilinear'');,',...
                      'imshow(J)']);
              b2=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b2',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','圖像剪切',...
                  'position',[200 80 50 20],...
                  'callback',[...
                      'cla,',...
                      'imshow plane.jpg,',...
                      'I=imcrop;,',...
                      'imshow(I)']);
                b3=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b3',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','pushbutton',...
                  'string','關(guān)閉',...
                  'position',[120 30 50 20],...
                  'callback','close');
              e1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','e1',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','edit',...
                  'horizontalalignment','right',...
                  'position',[50 80 100 20]);
              t1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','t1',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'style','text',...
                  'string','請輸入旋轉角度(0~90)度',...
                  'fontsize',12,...
                  'position',[40 100 130 20]);
拉個(gè)朗日插值
              h0=figure('toolbar','none',...
                  'position',[200 50 350 450],...
                  'name','實(shí)例85');
              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)'',''插值函數'');,',...
                      '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)],''計算結果'')']);
              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','階數:',...
                  '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');
三次樣條插值法
              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)],''計算結果'')']);
              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','第一節點(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','第二節點(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');
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)],''計算結果'')']);
              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','節點(diǎn)數:(<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');
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)],''計算結果'')']);
              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','第一節點(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','第二節點(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');
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'');,',...
                      'dn=str2num(strdn);,',...
                      'dd=abs(sin(dn)-nhermite(dn,n1,n2));,',...
                      'msgbox([''誤差為:'',num2str(dd)],''計算結果'')']);
              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','第一節點(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','第二節點(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');
平方根法
              h0=figure('toolbar','none',...
                  'position',[200 150 450 250]);
              h1=axes('parent',h0,...
                  'position',[0.05 0.15 0.65 0.6],...
                  'visible','off');
              I=imread('abmatrix.bmp','bmp');
              image(I)
              axis off
              huidiao=[...
                      'a=[1 0 3 0;0 2 1 2;3 1 15 0;0 2 0 4;];,',...
                      'b=[1 6 5 8]'';,',...
                      'r=[a,b];,',...
                      'n=4;,',...
                      'tic,',...
                      'x=ch(a,b,n);,',...
                      'time1=toc;,',...
                      'T=num2str(time1);,',...
                      'set(e1,''string'',[T,''秒'']);,',...
                      
              'msgbox([''X=['',num2str(x(1)),num2str(x(2)),num2str(x(3)),num2str(x(4)),'']''],''方程組的解'');'];
              t1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','t1',...
                  'style','text',...
                  'string','方程組如下:',...
                  'fontsize',15,...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[20 150 100 20]);
              e1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','e1',...
                  'style','edit',...
                  'horizontalalignment','right',...
                  'backgroundcolor',[1 1 1],...
                  'position',[290 100 30 20]);
              t2=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','t2',...
                  'style','text',...
                  'string','計算時(shí)間:',...
                  'fontsize',15,...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[250 125 80 20]);
              b1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b1',...
                  'style','pushbutton',...
                  'string','平方根法',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[250 60 60 20],...
                  'callback',huidiao);
              b2=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b2',...
                  'string','關(guān)閉',...
                  'style','pushbutton',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[250 30 60 20],...
                  'callback','close');
gauss消去法
              h0=figure('toolbar','none',...
                  'position',[200 150 450 250],...
                  'name','實(shí)例91');
              h1=axes('parent',h0,...
                  'position',[0.05 0.15 0.65 0.6],...
                  'visible','off');
              I=imread('abmatrix.bmp','bmp');
              image(I)
              axis off
              huidiao=[...
                      'a=[1 2 4 1 7;2 3 0 1 8;4 1 7 6 1;1 1 0 2 1;1 3 0 1 
              1;];,',...
                      'b=[15 14 19 5 6]'';,',...
                      'r=[a,b];,',...
                      'n=5;,',...
                      'tic,',...
                      'x=gauss(r,n);,',...
                      'time1=toc;,',...
                      'T=num2str(time1);,',...
                      'set(e1,''string'',[T,''秒'']);,',...
                      
              'msgbox([''X=['',num2str(x(1)),num2str(x(2)),num2str(x(3)),num2str(x(4)),num2str(x(5)),'']''],''方程組的解'');'];
              t1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','t1',...
                  'style','text',...
                  'string','方程組如下:',...
                  'fontsize',15,...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[20 150 100 20]);
              e1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','e1',...
                  'style','edit',...
                  'horizontalalignment','right',...
                  'backgroundcolor',[1 1 1],...
                  'position',[290 100 30 20]);
              t2=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','t2',...
                  'style','text',...
                  'string','計算時(shí)間:',...
                  'fontsize',15,...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[250 125 80 20]);
              b1=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b1',...
                  'style','pushbutton',...
                  'string','GS消去法',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[250 60 60 20],...
                  'callback',huidiao);
              b2=uicontrol('parent',h0,...
                  'units','points',...
                  'tag','b2',...
                  'string','關(guān)閉',...
                  'style','pushbutton',...
                  'backgroundcolor',[0.75 0.75 0.75],...
                  'position',[250 30 60 20],...
                  'callback','close');

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
圖形用戶(hù)界面(GUI)設計舉例
matlab編寫(xiě)的小游戲拼圖
【資源】Matlab GUI(圖形用戶(hù)界面) 的心得, 附 <編程中文參考手冊>
Matlab中Uicontrol 對象屬性詳解
【轉載】Matlab中Figure屬性的設定
安卓當下最流行的吸頂效果的實(shí)現(下)
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久