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

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

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

?? matlab 實用程序百例
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
實例47:曲線標記

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','my second gui');
h1=axes('parent',h0,...
    'position',[0.15 0.45 0.7 0.5],...
    'visible','on');
x=0:0.1:2*pi;
k=plot(x,sin(x),'*');
xlabel('自變量X');
ylabel('函數值Y');
title('標記類型的改變');
p1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','+',...
    'fontsize',20,...
    'foregroundcolor',[1 1 1],...
    'backgroundcolor',[0 0 0],...
    'position',[60 100 50 20],...
    'callback','set(k,''marker'',''+'')');
p2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','o',...
    'fontsize',20,...
    'foregroundcolor',[1 1 1],...
    'backgroundcolor',[0 0 0],...
    'position',[170 100 50 20],...
    'callback','set(k,''marker'',''o'')');
p3=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','x',...
    'fontsize',20,...
    'foregroundcolor',[1 1 1],...
    'backgroundcolor',[0 0 0],...
    'position',[280 100 50 20],...
    'callback','set(k,''marker'',''x'')');
p4=uicontrol('parent',h0,...
    'style','pushbutton',...
    'backgroundcolor',[1 1 1],...
    'fontsize',20,...
    'fontweight','demi',...
    'string','關閉',...
    'position',[150 30 80 60],...
    'callback','close');
t1=uicontrol('parent',h0,...
    'style','text',...
    'string','星號',...
    'fontsize',12,...
    'fontweight','demi',...
    'position',[60 120 50 20]);
t2=uicontrol('parent',h0,...
    'style','text',...
    'string','圓圈',...
    'fontsize',12,...
    'fontweight','demi',...
    'position',[170 120 50 20]);
t3=uicontrol('parent',h0,...
    'style','text',...
    'string','叉號',...
    'fontsize',12,...
    'fontweight','demi',...
    'position',[280 120 50 20]);
實例48:修改曲型

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實例48');
h1=axes('parent',h0,...
    'position',[0.15 0.45 0.7 0.5],...
    'visible','on');
x=0:0.1:2*pi;
k=plot(x,sin(x));
xlabel('自變量X');
ylabel('函數值Y');
title('線型的改變');
p1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','-.',...
    'fontsize',20,...
    'foregroundcolor',[1 1 1],...
    'backgroundcolor',[0 0 0],...
    'position',[60 100 50 20],...
    'callback','set(k,''linestyle'',''-.'')');
p2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string',':',...
    'fontsize',20,...
    'foregroundcolor',[1 1 1],...
    'backgroundcolor',[0 0 0],...
    'position',[170 100 50 20],...
    'callback','set(k,''linestyle'','':'')');
p3=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','-',...
    'fontsize',20,...
    'foregroundcolor',[1 1 1],...
    'backgroundcolor',[0 0 0],...
    'position',[280 100 50 20],...
    'callback','set(k,''linestyle'',''-'')');
p4=uicontrol('parent',h0,...
    'style','pushbutton',...
    'backgroundcolor',[1 1 1],...
    'fontsize',20,...
    'fontweight','demi',...
    'string','關閉',...
    'position',[150 30 80 60],...
    'callback','close');
t1=uicontrol('parent',h0,...
    'style','text',...
    'string','點劃線',...
    'fontsize',12,...
    'fontweight','demi',...
    'position',[60 120 50 20]);
t2=uicontrol('parent',h0,...
    'style','text',...
    'string','虛線',...
    'fontsize',12,...
    'fontweight','demi',...
    'position',[170 120 50 20]);
t3=uicontrol('parent',h0,...
    'style','text',...
    'string','實線',...
    'fontsize',12,...
    'fontweight','demi',...
    'position',[280 120 50 20]);
實例49:指定坐標軸范圍

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實例49');
h1=axes('parent',h0,...
    'position',[0.15 0.45 0.7 0.5],...
    'visible','on');
x=0:0.1:2*pi;
y=sin(x);
plot(x,y);
xlabel('X');
ylabel('Y');
title('坐標軸范圍的改變');
h=get(gca,'xlim');
k=get(gca,'ylim');
e1=uicontrol('parent',h0,...
    'style','edit',...
    'string',eval(num2str(h(1))),...
    'horizontalalignment','right',...
    'position',[80 120 100 20]);
t1=uicontrol('parent',h0,...
    'style','text',...
    'string','X軸最小值',...
    'position',[100 145 80 20]);
e2=uicontrol('parent',h0,...
    'style','edit',...
    'string',eval(num2str(h(2))),...
    'horizontalalignment','right',...
    'position',[80 60 100 20]);
t2=uicontrol('parent',h0,...
    'style','text',...
    'string','X軸最大值',...
    'position',[100 85 80 20]);
e3=uicontrol('parent',h0,...
    'style','edit',...
    'string',eval(num2str(k(1))),...
    'horizontalalignment','right',...
    'position',[250 120 100 20]);
t3=uicontrol('parent',h0,...
    'style','text',...
    'string','Y軸最小值',...
    'position',[270 145 80 20]);
e4=uicontrol('parent',h0,...
    'style','edit',...
    'string',eval(num2str(k(2))),...
    'horizontalalignment','right',...
    'position',[250 60 100 20]);
t4=uicontrol('parent',h0,...
    'style','text',...
    'string','X軸最小值',...
    'position',[270 85 80 20]);
p1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','設置',...
    'position',[105 10 50 30],...
    'callback',[...
        'a=str2num(get(e1,''string''));,',...
        'b=str2num(get(e2,''string''));,',...
        'c=str2num(get(e3,''string''));,',...
        'd=str2num(get(e4,''string''));,',...
        'axis([a b c d]),',...
        'drawnow']);
p2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','關閉',...
    'position',[275 10 50 30],...
    'callback','close');
實例50:繪制不同函數曲線的用戶界面

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實例50');
h1=axes('parent',h0,...
    'position',[0.29 0.45 0.7 0.5],...
    'visible','on');
f=uicontrol('parent',h0,...
    'style','frame',...
    'position',[5 50 90 400]);
p1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[150 100 60 40],...
    'string','繪圖',...
    'callback',[...
        'm=str2num(get(e1,''string''));,',...
        'n=str2num(get(e2,''string''));,',...
        'a=get(l1,''value'');,',...
        'x=m:0.1:n;',...
        'if a==1,',...
        'plot(x,sin(x)),',...
        'end,',...
        'if a==2,',...
        'plot(x,cos(x)),',...
        'end,',...
        'if a==3,',...
        'plot(x,exp(x)),',...
        'end']);
p2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[270 100 60 40],...
    'string','關閉',...
    'callback','close');
l1=uicontrol('parent',h0,...
    'style','listbox',...
    'position',[10 300 80 80],...
    'string','sin(x)|cos(x)|exp(x)',...
    'value',1,...
    'max',0.5,...
    'min',0);
f2=uicontrol('parent',h0,...
    'style','text',...
    'string','選擇函數',...
    'fontsize',10,...
    'position',[10 380 80 20]);
r1=uicontrol('style','radio',...
    'string','grid on',...
    'value',0,...
    'position',[10 100 60 20],...
    'callback',[...
        'grid on,',...
        'set(r1,''value'',1);,',...
        'set(r2,''value'',0)']);
r2=uicontrol('style','radio',...
    'string','grid off',...
    'position',[10 80 60 20],...
    'value',1,...
    'callback',[...
        'grid off,',...
        'set(r2,''value'',1);,',...
        'set(r1,''value'',0)']);
e1=uicontrol('parent',h0,...
    'style','edit',...
    'string',0,...
    'position',[20 210 60 20],...
    'horizontalalignment','right');
e2=uicontrol('parent',h0,...
    'style','edit',...
    'string','3',...
    'position',[20 150 60 20],...
    'horizontalalignment','right');
t1=uicontrol('parent',h0,...
    'style','text',...
    'string','X from',...
    'fontsize',10,...
    'position',[20 230 60 20],...
    'horizontalalignment','center');
t2=uicontrol('parent',h0,...
    'style','text',...
    'string','To',...
    'fontsize',10,...
    'position',[20 170 60 20],...
    'horizontalalignment','center');
實例51:可設置函數曲線圖視角的用戶界面

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實例51');
h1=axes('parent',h0,...
    'position',[0.15 0.45 0.7 0.5],...
    'visible','off');
[x,y]=meshgrid(-8:0.5:8);
r=sqrt(x.^2+y.^2)+eps;
z=sin(r)./r;
f1=surf(x,y,z);
shading interp
view(-50,30)
camlight left
colormap([1 0 0])
fv=get(h0,'colormap');
ifv=fv;
p1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','重置',...
    'position',[280 120 50 30],...
    'callback',[...
        'set(s1,''value'',ifv(1));,',...
        'set(s2,''value'',ifv(2));,',...
        'set(s3,''value'',ifv(3));,',...
        'set(h0,''colormap'',ifv)']);
p2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','關閉',...
    'position',[280 60 50 30],...
    'callback','close');
s1=uicontrol('parent',h0,...
    'style','slider',...
    'min',0,...
    'max',1,...
    'value',fv(1),...
    'position',[20 150 200 20],...
    'callback',[...
        's1k=get(s1,''value'');,',...
        'fv(1)=s1k;,',...
        'set(h0,''colormap'',fv);']);
t1=uicontrol('parent',h0,...
    'style','text',...
    'string','改變紅色成分',...
    'position',[20 170 100 20]);
s2=uicontrol('parent',h0,...
    'style','slider',...
    'min',0,...
    'max',1,...
    'value',fv(2),...
    'position',[20 100 200 20],...
    'callback',[...
        's2k=get(s2,''value'');,',...
        'fv(2)=s2k;,',...
        'set(h0,''colormap'',fv);']);
t2=uicontrol('parent',h0,...
    'style','text',...
    'string','改變綠色成分',...
    'position',[20 120 100 20]);
s3=uicontrol('parent',h0,...
    'style','slider',...
    'min',0,...
    'max',1,...
    'value',fv(3),...
    'position',[20 50 200 20],...
    'callback',[...
        's3k=get(s3,''value'');,',...
        'fv(3)=s3k;,',...
        'set(h0,''colormap'',fv);']);
t1=uicontrol('parent',h0,...
    'style','text',...
    'string','改變藍色成分',...
    'position',[20 70 100 20]); 
實例52:可設置函數曲線圖視角的用戶界面

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實例52');
h1=axes('parent',h0,...
    'position',[0.15 0.5 0.7 0.5],...
    'visible','off');
[x,y]=meshgrid(-8:0.5:8);
r=sqrt(x.^2+y.^2)+eps;
z=sin(r)./r;
fh=surf(x,y,z);
shading interp
view([-60 30])
fv=get(h1,'view');
fv2=fv;
camlight left
sh1=uicontrol('parent',h0,...
    'style','slider',...
    'max',1,...
    'min',-1,...
    'value',fv(1)/180,...
    'position',[20 150 200 20],...
    'callback',[...
        'fv(1)=90*get(sh1,''value'');,',...
        'set(h1,''view'',[fv(1) fv(2)]),',...
        'set(ed1,''string'',fv(1))']);   
text1=uicontrol('parent',h0,...
    'style','text',...
    'string','方位角的變化滑標',...
    'position',[20 170 200 20]);
sh2=uicontrol('parent',h0,...
    'style','slider',...
    'max',1,...
    'min',-1,...
    'value',fv(2)/180,...
    'position',[20 90 200 20],...
    'callback',[...
        'fv(2)=90*get(sh2,''value'');,',...
        'set(h1,''view'',[fv(1) fv(2)]),',...
        'set(ed2,''string'',fv(2))']);
text2=uicontrol('parent',h0,...
    'style','text',...
    'string','仰角的變化滑標',...
    'position',[20 110 200 20]);
ed1=uicontrol('parent',h0,...
    'style','edit',...
    'string',fv(1),...
    'position',[30 30 50 20]);
text3=uicontrol('parent',h0,...
    'style','text',...
    'string','方位角的數值',...
    'position',[20 50 80 20]);
ed2=uicontrol('parent',h0,...
    'style','edit',...
    'string',fv(2),...
    'position',[150 30 50 20]);
text4=uicontrol('parent',h0,...
    'style','text',...
    'string','仰角的數值',...
    'position',[135 50 80 20]);
pf1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','重置',...
    'position',[280 120 50 30],...
    'callback',[...
        'set(h1,''view'',fv2),',...
        'set(sh1,''value'',fv2(1)/180),',...
        'set(sh2,''value'',fv2(2)/180),',...
        'set(ed1,''string'',fv2(1)),',...
        'set(ed2,''string'',fv2(2))']);
pf2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','關閉',...
    'position',[280 60 50 30],...
    'callback','close'); 
實例53:可設置函數曲線光源的用戶界面

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實例53');
h1=axes('parent',h0,...
    'position',[0.15 0.5 0.7 0.5],...
    'visible','off');
[x,y]=meshgrid(-8:0.5:8);
r=sqrt(x.^2+y.^2)+eps;
z=sin(r)./r;
fh=surf(x,y,z);
shading interp
view([-60 30])

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品99国产精品| 国产精品456| 香港成人在线视频| 中文字幕佐山爱一区二区免费| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国内精品自线一区二区三区视频| 亚洲成av人综合在线观看| 亚洲综合一区二区三区| 夜夜嗨av一区二区三区| 亚洲午夜免费视频| 日韩中文字幕一区二区三区| 午夜精品久久久久久久| 日韩和欧美一区二区三区| 婷婷丁香久久五月婷婷| 亚洲gay无套男同| 日韩中文字幕91| 久久69国产一区二区蜜臀| 国产精品影视网| 成人精品一区二区三区四区| 97精品久久久久中文字幕| 欧美做爰猛烈大尺度电影无法无天| 色又黄又爽网站www久久| 欧美性色欧美a在线播放| 欧美精品1区2区| 欧美成人一区二区三区在线观看| 精品国产髙清在线看国产毛片 | 精品欧美黑人一区二区三区| 国产亚洲欧洲997久久综合| 日本一区二区成人| 一级日本不卡的影视| 青草国产精品久久久久久| 国产成人自拍在线| 欧美亚洲一区二区三区四区| 欧美成人三级在线| 亚洲欧美日韩中文字幕一区二区三区| 亚洲一区在线电影| 国产精品综合av一区二区国产馆| 97精品电影院| 日韩一级大片在线| 亚洲人成在线播放网站岛国| 蜜桃精品视频在线| 91在线国产观看| 日韩欧美你懂的| 亚洲欧美电影院| 国产在线播放一区二区三区| 91麻豆国产精品久久| 欧美成人精品1314www| 亚洲男同性视频| 国产乱码精品1区2区3区| 欧美日韩一区二区在线观看视频 | 欧美国产精品一区二区| 天堂成人国产精品一区| 制服丝袜中文字幕一区| 中文字幕制服丝袜成人av | 久久精品国产澳门| 日本乱人伦aⅴ精品| 国产三级欧美三级日产三级99 | 日韩av中文在线观看| 波多野结衣在线一区| 精品国产一区久久| 亚洲一区二区三区小说| 丁香一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 日本在线不卡视频| 欧美人成免费网站| 亚洲一区二区免费视频| 91免费观看国产| 国产精品久久久久9999吃药| 另类成人小视频在线| 555www色欧美视频| 天堂久久久久va久久久久| 在线免费观看不卡av| 中文字幕一区二区日韩精品绯色| 国产精品乡下勾搭老头1| 久久午夜电影网| 国产呦萝稀缺另类资源| 日韩精品一区在线观看| 日本aⅴ精品一区二区三区| 在线综合视频播放| 日本中文字幕一区二区视频| 91精品国产入口在线| 香蕉成人啪国产精品视频综合网| 在线观看视频一区二区欧美日韩| 亚洲欧美偷拍另类a∨色屁股| 99精品久久只有精品| 亚洲欧美一区二区三区极速播放| 91香蕉国产在线观看软件| 亚洲欧美一区二区不卡| 在线免费观看不卡av| 石原莉奈在线亚洲三区| 欧美不卡激情三级在线观看| 国产一区二区在线看| 中文字幕欧美国产| 色狠狠桃花综合| 日本欧美在线看| 久久久美女艺术照精彩视频福利播放| 国产福利一区在线| 一区二区三区加勒比av| 欧美久久久久久久久久 | 日韩免费观看2025年上映的电影| 奇米影视7777精品一区二区| 精品日韩在线观看| 成人av在线一区二区| 亚洲在线视频免费观看| 日韩一卡二卡三卡| 不卡欧美aaaaa| 亚洲图片欧美视频| 日韩精品一区二区三区蜜臀 | 一二三四社区欧美黄| 欧美一区二区精美| 成人午夜短视频| 亚洲aaa精品| 国产午夜精品福利| 欧美日韩国产综合久久 | 97精品电影院| 日韩美女视频在线| 国产成人一区在线| 亚洲成人免费观看| 精品噜噜噜噜久久久久久久久试看| 国产91在线看| 日韩黄色片在线观看| 最新热久久免费视频| 日韩一级二级三级| 在线观看av一区二区| 国产在线精品一区二区三区不卡| 亚洲品质自拍视频| 久久精品免视看| 欧美精品自拍偷拍| 99久久亚洲一区二区三区青草| 奇米在线7777在线精品| 一区二区在线观看免费| 欧美国产一区二区在线观看| 日韩视频一区二区| 欧美日韩精品专区| 99精品久久只有精品| 国产精品99久久久久久似苏梦涵 | 久久九九久久九九| 88在线观看91蜜桃国自产| 99精品欧美一区| 国产iv一区二区三区| 黄色日韩网站视频| 另类成人小视频在线| 亚洲一区二区五区| 亚洲综合激情另类小说区| 国产精品女人毛片| 久久精品视频一区二区三区| 91精品国产综合久久香蕉的特点| 日本乱码高清不卡字幕| 一本久久精品一区二区| 成人18精品视频| 成人不卡免费av| 国产成人av影院| 国产不卡在线视频| 成人午夜碰碰视频| 不卡电影免费在线播放一区| 成人免费视频一区二区| 国产夫妻精品视频| 成人亚洲精品久久久久软件| 国产剧情一区二区| 成人性生交大片免费| 成人在线综合网| 成人h动漫精品| kk眼镜猥琐国模调教系列一区二区 | 99精品欧美一区二区三区小说| 成人看片黄a免费看在线| 丁香六月综合激情| 99久免费精品视频在线观看| 99国产精品久久久| 欧美最新大片在线看| 欧美日产国产精品| 国产精品毛片大码女人| 综合激情成人伊人| 亚洲国产综合视频在线观看| 亚洲a一区二区| 美腿丝袜在线亚洲一区| 国产盗摄一区二区| 色哟哟精品一区| 4438x成人网最大色成网站| 欧美r级电影在线观看| 国产欧美一区二区精品久导航| 中文字幕一区二区三区乱码在线| 亚洲精品乱码久久久久久黑人| 午夜av一区二区| 精品午夜久久福利影院| 99精品欧美一区二区蜜桃免费| 欧美日韩一区国产| 久久久影视传媒| 亚洲免费观看在线视频| 蜜臀久久久99精品久久久久久| 国产做a爰片久久毛片| 色综合久久88色综合天天免费| 在线观看91av| 国产三级欧美三级日产三级99| 亚洲天堂成人在线观看| 免费在线看成人av| 色综合久久久久| 久久蜜桃av一区二区天堂| 亚洲电影你懂得| 懂色av一区二区三区免费观看| 欧美日本乱大交xxxxx|