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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? matlab實用程序百例2.txt

?? 里面有近百個MATLAB的小程序
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
    'style','pushbutton',...
    'position',[19.5 100 60 20],...
    'string','關閉',...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'tag','b2',...
    'callback','close');
實例58:可控制小球運動速度的用戶界面

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實例58');
h1=axes('parent',h0,...
    'position',[0.25 0.45 0.5 0.5],...
    'visible','off');
t=0:0.1:4*pi;
x=sin(t);
y=cos(t);
plot(x,y)
axis equal
axis off
h=line('color',[1 0 0],...
    'linestyle','.',...
    'xdata',0,...
    'ydata',1,...
    'markersize',20,...
    'erasemode','xor');
n=length(t);
i=1;
speed=0.01;
k=0;
b1huidiao=[...
        'k=0;,',...
        'while 1,',...
        'set(h,''xdata'',x(i),''ydata'',y(i));,',...
        'drawnow,',...
        'pause(speed),',...
        'i=i+1;,',...
        'if i>n,',...
        'i=1;,',...
        'end,',...
        'if k==1,',...
        'break,',...
        'end,',...
        'end'];
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','開始',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[30 80 50 20],...
    'callback',b1huidiao);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','停止',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 80 50 20],...
    'callback','k=1;');
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','關閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 80 50 20],...
    'callback',[...
        'k=1;,',...
        'close']);
s1=uicontrol('parent',h0,...
    'units','points',...
    'tag','s1',...
    'style','slider',...
    'value',50*speed,...
    'max',1,...
    'min',0,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[30 115 190 20],...
    'callback',[...
        'm=get(s1,''value'');,',...
        'speed=m/50;']);
t1=uicontrol('parent',h0,...
    'units','points',...
    'tag','t1',...
    'style','text',...
    'fontsize',15,...
    'string','小球運動速度',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[30 135 190 20]); 
實例59:設置坐標軸縱橫軸比

h0=figure('name','實例59');
h1=axes('parent',h0,...
    'position',[0.3 0.45 0.5 0.5],...
    'visible','off');
u1=uimenu('parent',h0,...
    'label','繪圖',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'tag','u1',...
    'callback',[...
        '[x,y]=meshgrid(-8:0.5:8);,',...
        'r=sqrt(x.^2+y.^2)+eps;,',...
        'z=sin(r)./r;,',...
        'mesh(x,y,z),',...
        'shading interp,',...
        'axis normal']);
f1=uicontrol('parent',h0,...
    'units','points',...
    'listboxtop',0,...
    'position',[12 6 100 150],...
    'style','frame',...
    'tag','f1');
t1=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 130 72.75 16.5],...
    'string','坐標縱橫比',...
    'style','text',...
    'tag','t1');
r1=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 110 72.75 16.5],...
    'string','axis equal',...
    'style','radiobutton',...
    'tag','r1',...
    'value',1,...
    'callback',[...
        'set(r1,''value'',1);,',...
        'set(r2,''value'',0);,',...
        'set(r3,''value'',0);,',...
        'set(r4,''value'',0);,',...
        'set(r5,''value'',0);,',...
        'axis equal']);
r2=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 85 72.75 16.5],...
    'string','axis square',...
    'style','radiobutton',...
    'tag','r2',...
    'value',0,...
    'callback',[...
        'set(r2,''value'',1);,',...
        'set(r1,''value'',0);,',...
        'set(r3,''value'',0);,',...
        'set(r4,''value'',0);,',...
        'set(r5,''value'',0);,',...
        'axis square']);
r3=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 60 72.75 16.5],...
    'string','axis image',...
    'style','radiobutton',...
    'tag','r3',...
    'value',0,...
    'callback',[...
        'set(r3,''value'',1);,',...
        'set(r2,''value'',0);,',...
        'set(r1,''value'',0);,',...
        'set(r4,''value'',0);,',...
        'set(r5,''value'',0);,',...
        'axis image']);
r4=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 35 72.75 16.5],...
    'string','axie vis3d',...
    'style','radiobutton',...
    'tag','r4',...
    'value',0,...
    'callback',[...
        'set(r4,''value'',1);,',...
        'set(r2,''value'',0);,',...
        'set(r3,''value'',0);,',...
        'set(r1,''value'',0);,',...
        'set(r5,''value'',0);,',...
        'axis vis3d']);
r5=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 10 72.75 16.5],...
    'string','axis auto',...
    'style','radiobutton',...
    'tag','r5',...
    'value',0,...
    'callback',[...
        'set(r5,''value'',1);,',...
        'set(r2,''value'',0);,',...
        'set(r3,''value'',0);,',...
        'set(r4,''value'',0);,',...
        'set(r1,''value'',0);,',...
        'axis auto']);
b1=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[12 243 72.75 30.75],...
    'string','關閉',...
    'tag','b1',...
    'callback','close');
b2=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[216.75 67.5 83.25 18.75],...
    'string','Colorbar',...
    'tag','b2',...
    'callback','colorbar');
實例60:動態(tài)文本顯示

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實例60');
h1=axes('parent',h0,...
    'position',[0.25 0.45 0.5 0.5],...
    'visible','off');
str1='當前阻尼比=';
z=0.52;
t=0:0.1:10;
y=step(1,[1 2*z 1],t);
hline=plot(t,y);
grid on
r1=uicontrol('parent',h0,...
    'units','points',...
    'tag','r1',...
    'style','radio',...
    'string','grid on',...
    'position',[30 120 60 20],...
    'backgroundcolor',[0.75 0.75 0.75],...
    'value',1,...
    'callback',[...
        'grid on,',...
        'set(r1,''value'',1);,',...
        'set(r2,''value'',0)']);
r2=uicontrol('parent',h0,...
    'units','points',...
    'tag','r2',...
    'style','radio',...
    'string','grid on',...
    'position',[30 95 60 20],...
     'backgroundcolor',[0.75 0.75 0.75],...
    'value',0,...
    'callback',[...
        'grid off,',...
        'set(r2,''value'',1);,',...
        'set(r1,''value'',0)']);
s1=uicontrol('parent',h0,...
    'units','points',...
    'tag','s1',...
    'style','slider',...
    'value',z,...
    'position',[100 95 150 20],...
     'backgroundcolor',[0.75 0.75 0.75],...
    'max',1,...
    'min',0,...
    'callback',[...
        'z=get(s1,''value'');,',...
        'set(t1,''string'',[str1,sprintf(''%1.4g\'',z)]);,',...
        'delete(hline),',...
        'y=step(1,[1 2*z 1],t);,',...
        'hline=plot(t,y);,',...
        'if get(r1,''value'')==1,',...
        'grid on,',...
        'end,',...
        'if get(r2,''value'')==1,',...
        'grid off,',...
        'end']);
t1=uicontrol('parent',h0,...
    'units','points',...
    'tag','t1',...
    'style','text',...
    'string',[str1,sprintf('%1.4g\',z)],...
    'position',[100 120 150 20],...
    'backgroundcolor',[0.75 0.75 0.75]);
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','關閉',...
    'position',[80 50 80 30],...
    'backgroundcolor',[0.75 0.75 0.75],...
    'fontsize',15,...
    'callback','close');
實例61:瀏覽流體數(shù)據(jù)

h0=figure('toolbar','none',...
    'position',[198 56 450 468],...
    'name','實例61');
h1=axes('parent',h0,...
    'position',[0.3 0.45 0.5 0.5],...
    'visible','off');
[x,y,z,v]=flow;
xmin=min(x(:));
ymin=min(y(:));
zmin=min(z(:));
xmax=max(x(:));
ymax=max(y(:));
zmax=max(z(:));
u1=uimenu('parent',h0,...
    'tag','u1',...
    'label','繪圖',...
    'background',[0.75 0.75 0.75]);
u11=uimenu('parent',u1,...
    'tag','u11',...
    'label','繞X軸旋轉(zhuǎn)-45度',...
    'background',[0.75 0.75 0.75],...
    'callback',[...
        'cla,',...
        'hslice=surf(linspace(xmin,xmax,100),linspace(ymin,ymax,100),zeros(100));,',...
        'rotate(hslice,[-1,0,0],-45),',...
        'xd=get(hslice,''xdata'');,',...
        'yd=get(hslice,''ydata'');,',...
        'zd=get(hslice,''zdata'');']);
u12=uimenu('parent',u1,...
    'tag','u12',...
    'label','繞Y軸旋轉(zhuǎn)-45度',...
    'background',[0.75 0.75 0.75],...
    'callback',[...
        'cla,',...
        'hslice=surf(linspace(xmin,xmax,100),linspace(ymin,ymax,100),zeros(100));,',...
        'rotate(hslice,[0,-1,0],-45),',...
        'xd=get(hslice,''xdata'');,',...
        'yd=get(hslice,''ydata'');,',...
        'zd=get(hslice,''zdata'');']);
b1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b1',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','設置顏色',...
    'position',[50 120 60 25],...
    'callback',[...
        'delete(hslice),',...
        'h=slice(x,y,z,v,xd,yd,zd);,',...
        'set(h,''facecolor'',''interp'',''edgecolor'',''none'',''diffusestrength'',0.8)']);
b2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b2',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','添加切片1',...
    'position',[240 120 60 25],...
    'callback',[...
        'hold on,',...
        'hx=slice(x,y,z,v,xmax,[],[]);,',...
        'set(hx,''facecolor'',''interp'',''edgecolor'',''none'')']);
b3=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b3',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','添加切片2',...
    'position',[240 70 60 20],...
    'callback',[...
        'hold on,',...
        'hy=slice(x,y,z,v,ymax,[],[]);,',...
        'set(hy,''facecolor'',''interp'',''edgecolor'',''none'')']);
b4=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b4',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','添加切片3',...
    'position',[240 20 60 20],...
    'callback',[...
        'hold on,',...
        'hz=slice(x,y,z,v,zmax-1,[],[]);,',...
        'set(hz,''facecolor'',''interp'',''edgecolor'',''none'')']);
b5=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b5',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','燈光效果',...
    'position',[50 70 60 20],...
    'callback',[...
        'daspect([1 1 1]),',...
        'axis tight,',...
        'box on,',...
        'view(-38.5,16),',...
        'camzoom(1.4),',...
        'camproj perspective,',...
        'lightangle(-45,45)']);
b6=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b6',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','colorbar',...
    'position',[50 20 60 20],...
    'callback','colorbar(''horiz'')');
b7=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b7',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','關閉',...
    'fontsize',14,...
    'position',[145 75 60 20],...
    'callback','close');
實例62:簡單計算器

h0=figure('toolbar','none',...
    'position',[200 60 220 240],...
    'name','實例62');
b0=uicontrol('parent',h0,...
    'units','points',...
    'tag','b0',...
    'style','pushbutton',...
    'string','0',...
    'fontsize',12,...
    'position',[5 15 35 20],...
    'backgroundcolor',[0.75 0.75 0.75],...
    'callback',[...
        'if k==''0''&i==0,',...
        'errordlg(''數(shù)字首位不能為0''),',...
        'else,',...
        'k=[k,''0''];,',...
        'if k==''00'',',...
        'k=''0'';,',...
        'end,',...
        'set(e1,''string'',k);,',...
        'end']);
b15=uicontrol('parent',h0,...
    'units','points',...
    'tag','b15',...
    'style','pushbutton',...
    'string','=',...
    'fontsize',12,...
    'position',[45 15 35 20],...
    'backgroundcolor',[0.75 0.75 0.75],...

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美人与禽zozo性伦| 成人av电影免费在线播放| 337p粉嫩大胆噜噜噜噜噜91av| 久久国产成人午夜av影院| 久久久久国产精品麻豆| 色欲综合视频天天天| 日韩av一二三| 中文字幕一区二区日韩精品绯色| 欧美三级韩国三级日本三斤 | 蜜臀av性久久久久蜜臀aⅴ流畅 | 日韩免费高清av| a级精品国产片在线观看| 亚洲一区二区视频在线| 日韩一区在线免费观看| 久久蜜桃av一区精品变态类天堂| 欧美日韩成人激情| 欧美综合在线视频| 色综合一个色综合亚洲| 99久久久国产精品免费蜜臀| 婷婷久久综合九色综合绿巨人| 国产精品久久久久久久久免费相片 | 亚洲乱码日产精品bd| 欧美高清在线一区二区| 欧美精品一区二区三区一线天视频 | 国产精品久久久久一区二区三区共| 欧美精品1区2区3区| 欧美日韩高清一区二区三区| 91蜜桃免费观看视频| 91网址在线看| 色婷婷综合久色| 在线免费一区三区| 欧美日本高清视频在线观看| 成人看片黄a免费看在线| 国产精品一色哟哟哟| 国产乱对白刺激视频不卡| 成人av在线电影| 欧美日韩国产综合一区二区| 欧美日韩视频在线第一区| 91精品视频网| 久久久久久久免费视频了| 久久亚洲精华国产精华液| 国产欧美精品区一区二区三区| 欧美精品一区二区三| 国产欧美一区二区三区沐欲| 中文字幕一区二区三区四区不卡 | 国产精品亚洲一区二区三区妖精 | 色悠悠久久综合| 欧美一区二区三区视频| 国产欧美一区二区三区鸳鸯浴| 2023国产精品视频| 亚洲一二三级电影| 国产一区二区三区免费看| 91蜜桃视频在线| 久久综合久色欧美综合狠狠| 中文字幕一区二区在线观看| 亚洲国产毛片aaaaa无费看| 视频一区二区三区入口| 国产成a人亚洲精品| 精品少妇一区二区三区| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲成人动漫一区| 国产精品一区二区无线| 欧美系列亚洲系列| 久久久久久久久久美女| 天天综合天天做天天综合| 成人动漫av在线| 久久久久久久综合色一本| 曰韩精品一区二区| 成人97人人超碰人人99| 日韩美一区二区三区| 亚洲影院理伦片| 色女孩综合影院| 亚洲与欧洲av电影| 色一情一伦一子一伦一区| 中文字幕一区二区三区在线观看| 国产精品99久久不卡二区| 日韩美女一区二区三区| 国内精品伊人久久久久av一坑 | 91免费视频观看| 亚洲精选免费视频| 91免费观看在线| 午夜精品福利久久久| 欧美艳星brazzers| 亚洲一区精品在线| 欧美性视频一区二区三区| 亚洲成人福利片| 日韩一区二区三区精品视频| 免费欧美在线视频| 精品国产乱码久久久久久浪潮| 老司机精品视频线观看86| 久久夜色精品一区| 色婷婷综合久久久久中文一区二区| 亚洲欧洲一区二区三区| 欧美三级欧美一级| 国产一区三区三区| 久久精品免费在线观看| 欧美又粗又大又爽| 免费观看成人av| 亚洲乱码国产乱码精品精可以看| 在线观看视频欧美| 久久99精品一区二区三区 | 日韩欧美国产wwwww| 成人午夜视频在线| 亚洲第四色夜色| 国产欧美日韩不卡| 欧美男人的天堂一二区| 国产麻豆精品在线观看| 亚洲国产日产av| 国产欧美va欧美不卡在线| 欧美日韩国产在线播放网站| 精品一区免费av| 一区二区在线观看免费| 欧美激情在线一区二区| 欧美精品tushy高清| 欧美综合欧美视频| eeuss鲁片一区二区三区在线观看| 日本中文字幕不卡| 美女脱光内衣内裤视频久久网站 | 成人av资源站| 九色|91porny| 日韩中文字幕av电影| 国产精品国产成人国产三级| 精品美女一区二区| 日韩精品一区二区三区中文精品| 色婷婷亚洲综合| 91欧美激情一区二区三区成人| 国产91富婆露脸刺激对白| 国内成人自拍视频| 久久精品久久久精品美女| 日本v片在线高清不卡在线观看| 国产精品久久99| 亚洲男人的天堂在线aⅴ视频| 国产性天天综合网| 国产精品久久久久久福利一牛影视| 久久久亚洲精品石原莉奈| 日韩精品一区二区三区老鸭窝| 日韩免费福利电影在线观看| 欧美精品一区二区三区视频| 精品乱码亚洲一区二区不卡| 欧美成人a视频| 中文字幕一区二区三区不卡在线 | 国产精品日韩成人| 亚洲欧美一区二区久久| 亚洲成年人网站在线观看| 麻豆一区二区三| 粉嫩av一区二区三区粉嫩| 91丝袜高跟美女视频| 欧美日韩一区二区三区在线看| 日韩美女在线视频| 亚洲天堂网中文字| 久久66热偷产精品| 91官网在线免费观看| 欧美精品一区二区不卡| 亚洲免费观看在线观看| 国产一区在线观看视频| 在线观看成人小视频| 国产亚洲精品精华液| 日韩中文字幕麻豆| 91丨porny丨蝌蚪视频| 国产在线乱码一区二区三区| 国产精品影视在线观看| 91免费在线播放| 欧美一卡二卡在线观看| 日本精品免费观看高清观看| 91麻豆精品91久久久久同性| 亚洲欧洲韩国日本视频| 国内久久精品视频| 在线观看一区日韩| 久久先锋影音av| 日本aⅴ精品一区二区三区 | 成人精品视频一区| 久久久亚洲精品石原莉奈| 亚洲高清三级视频| 色婷婷av一区二区三区gif| 亚洲欧美视频一区| 成人午夜免费av| 精品毛片乱码1区2区3区| 奇米一区二区三区| 69av一区二区三区| 日韩黄色一级片| 日韩丝袜情趣美女图片| 麻豆成人久久精品二区三区红| 欧美一区二区三区在线观看 | 欧美日韩国产一级片| 亚洲美女电影在线| 99久久99久久免费精品蜜臀| 亚洲你懂的在线视频| 欧美日韩一二三区| 五月激情综合网| 精品国产电影一区二区| 国产**成人网毛片九色 | 成人做爰69片免费看网站| 国产精品久99| 51精品秘密在线观看| 国产在线精品国自产拍免费| 1000部国产精品成人观看| 91精品国产综合久久久久久漫画 | 国产乱一区二区| 一区二区三区四区亚洲| 884aa四虎影成人精品一区|