亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美一区二区精品在线| 国产一区二区三区在线看麻豆| 欧美嫩在线观看| 欧美日韩高清一区| 精品国产一区二区三区忘忧草 | 日韩午夜av电影| 91精品国产高清一区二区三区| 欧美亚洲禁片免费| 欧美一区二区性放荡片| 欧美国产激情二区三区| 中文字幕的久久| 国产精品国产三级国产专播品爱网| 亚洲欧洲色图综合| 免费看欧美女人艹b| 99精品视频在线观看| 日本精品视频一区二区| 26uuu久久天堂性欧美| 亚洲黄网站在线观看| 极品少妇一区二区三区精品视频 | 精品日韩99亚洲| 国产精品久久久久久久久免费桃花 | 喷水一区二区三区| 91麻豆高清视频| 国产精品久久久久久久岛一牛影视| 亚洲最快最全在线视频| 国产在线精品一区二区不卡了| 欧美优质美女网站| 中文字幕亚洲在| 国产成人精品在线看| 日韩精品中午字幕| 麻豆成人综合网| 久久久亚洲精品石原莉奈| 免播放器亚洲一区| 欧美一区二区三区人| 日韩成人免费在线| 91黄色激情网站| 日韩一区二区在线观看| 日韩小视频在线观看专区| 在线播放日韩导航| 91精品视频网| 久久这里只有精品6| 日本一区二区不卡视频| 亚洲精品一区二区三区香蕉| 337p日本欧洲亚洲大胆精品 | 日韩免费高清av| 久久综合久久99| 国产欧美综合在线观看第十页 | 欧美一区二区人人喊爽| 久久久久9999亚洲精品| 亚洲三级在线免费| 蜜桃av一区二区| 国产99久久久国产精品免费看| 色综合天天做天天爱| 欧美嫩在线观看| 亚洲欧洲av另类| 日本视频在线一区| 91网上在线视频| av色综合久久天堂av综合| 美女一区二区在线观看| 一区二区三区日韩欧美精品| 337p日本欧洲亚洲大胆精品| 欧美色涩在线第一页| 97se亚洲国产综合自在线不卡 | 欧美一区二区三区男人的天堂 | 自拍偷拍欧美精品| 韩国av一区二区| 日韩一区二区免费在线电影| 亚洲欧美日韩一区二区| 国产91精品在线观看| www国产成人免费观看视频 深夜成人网 | 国产精品伦一区二区三级视频| 奇米色一区二区| 7777精品伊人久久久大香线蕉的 | 亚洲精选视频在线| 成人午夜精品一区二区三区| 精品国产污网站| 国产原创一区二区| 欧美激情一区二区三区蜜桃视频 | 久久综合色之久久综合| 美女视频网站久久| 久久久久久久久一| 国产69精品久久久久777| 中文字幕欧美激情| 成人av电影在线网| 一区二区三区在线观看动漫| 欧美日韩一区三区四区| 三级不卡在线观看| 国产偷国产偷精品高清尤物| 国产精品一区2区| 国产.欧美.日韩| 日本黄色一区二区| 国产亚洲福利社区一区| 亚洲一二三四久久| 国产98色在线|日韩| 欧美午夜不卡在线观看免费| 久久你懂得1024| 日韩不卡一二三区| 色婷婷av一区二区三区gif| 久久久久九九视频| 日本美女视频一区二区| 欧美日韩性生活| 亚洲精品午夜久久久| www.亚洲色图.com| 中文字幕欧美激情一区| 亚洲国产aⅴ成人精品无吗| 91碰在线视频| 亚洲欧美在线高清| 欧美综合在线视频| 亚洲综合精品久久| 欧美自拍丝袜亚洲| 亚洲福利一区二区| 日韩三级精品电影久久久| 国产suv一区二区三区88区| 天天色天天爱天天射综合| 精品乱码亚洲一区二区不卡| 国产在线播放一区| 国产精品久久国产精麻豆99网站| 97精品视频在线观看自产线路二| 中文字幕av在线一区二区三区| 大尺度一区二区| 亚洲在线视频免费观看| 欧美大肚乱孕交hd孕妇| 国产一区在线观看视频| 亚洲激情男女视频| 亚洲午夜精品网| 无码av中文一区二区三区桃花岛| 精品国产一区二区国模嫣然| 91老师片黄在线观看| 亚洲国产你懂的| 国产午夜精品一区二区| 欧美日韩高清在线| 色先锋aa成人| 波多野结衣亚洲| 国产一区二区网址| 看国产成人h片视频| 亚洲香肠在线观看| 亚洲欧洲日本在线| 中文字幕在线免费不卡| 精品国产网站在线观看| 91福利视频在线| 成年人午夜久久久| 成人97人人超碰人人99| 成人亚洲一区二区一| 国产成人综合自拍| 日韩国产一区二| 日韩电影在线一区二区| 天天综合网天天综合色| 亚洲成人一区在线| 亚洲午夜激情网页| 亚洲高清在线精品| 亚洲另类在线一区| 午夜激情综合网| 天天综合日日夜夜精品| 国产电影精品久久禁18| 成人福利电影精品一区二区在线观看| 国产黑丝在线一区二区三区| 久久er99热精品一区二区| 日韩精品最新网址| 久久精品国产99久久6| 福利一区二区在线观看| 91麻豆精品国产91久久久使用方法 | 亚洲国产美女搞黄色| 国产久卡久卡久卡久卡视频精品| 不卡大黄网站免费看| 欧美大片顶级少妇| 中文字幕五月欧美| 久久99精品久久久久| 91视视频在线直接观看在线看网页在线看 | 一区二区三区日韩欧美精品| 美女视频免费一区| 色婷婷亚洲精品| 2021中文字幕一区亚洲| 色8久久人人97超碰香蕉987| 日本不卡视频在线| 亚洲欧美在线高清| 精品日产卡一卡二卡麻豆| 国产乱理伦片在线观看夜一区 | 一区二区三区成人在线视频| 欧美一区二区三区色| 色综合婷婷久久| 国产成人午夜高潮毛片| 午夜在线成人av| 亚洲免费视频成人| 国产精品福利一区二区三区| 91精品国产入口在线| 成人一区二区三区| 国内久久精品视频| 亚洲精品乱码久久久久久日本蜜臀| 不卡电影免费在线播放一区| 国产精品久久国产精麻豆99网站| 成人av免费网站| 日韩成人免费在线| 奇米精品一区二区三区在线观看 | 亚洲影视在线播放| 亚洲一级二级三级在线免费观看| 久久综合久久综合九色| 91精品国产色综合久久久蜜香臀| 一本色道综合亚洲| 在线电影国产精品| 欧美sm美女调教|