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

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

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

?? matlab實用100例
?? TXT
?? 第 1 頁 / 共 5 頁
字號:

下載地址:http://www.ilovematlab.cn/viewthread.php?tid=2981


實例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;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠久久亚洲欧美| 免费在线观看日韩欧美| 亚洲色图制服诱惑| 日韩国产精品久久久| 偷拍一区二区三区四区| 99久久综合国产精品| 国产日韩欧美麻豆| 亚洲欧美日韩系列| 国产精品一区久久久久| 4438x成人网最大色成网站| 中文字幕一区免费在线观看| 美日韩一区二区三区| 在线免费一区三区| 亚洲一区二区五区| 91美女蜜桃在线| 亚洲精品欧美专区| 欧美午夜一区二区三区| 国产丝袜欧美中文另类| 久久网站最新地址| 日本不卡高清视频| 91精品国产综合久久福利| 久久久久久一二三区| 麻豆国产欧美一区二区三区| 成人av片在线观看| 国产精品国产三级国产aⅴ入口 | 2021国产精品久久精品| 另类综合日韩欧美亚洲| 日韩限制级电影在线观看| 天天免费综合色| 精品剧情v国产在线观看在线| 日本一不卡视频| 国产欧美中文在线| 色综合久久中文字幕综合网| 亚洲激情图片一区| 欧美一区二区三区四区久久 | 2021中文字幕一区亚洲| 国产女主播视频一区二区| 日韩成人免费看| 在线精品视频免费播放| 三级不卡在线观看| 日本二三区不卡| 日韩二区三区在线观看| 日韩精品中文字幕在线不卡尤物 | 色久优优欧美色久优优| 男人的天堂亚洲一区| 中文字幕在线不卡一区| caoporm超碰国产精品| 性久久久久久久| 国产精品短视频| 欧美性色综合网| 成人免费电影视频| 欧美a一区二区| 亚洲图片你懂的| 欧美中文字幕一区| 在线观看网站黄不卡| 国产成人免费视频网站 | 色狠狠综合天天综合综合| 九色综合国产一区二区三区| 五月天婷婷综合| 成人免费在线观看入口| 国产精品天干天干在观线 | 国产成人8x视频一区二区| 亚洲三级视频在线观看| 国产精品久久久久久久久久久免费看| 欧美日本国产一区| 欧美日韩一区二区电影| 日本精品视频一区二区三区| 国产成人午夜片在线观看高清观看| 亚洲国产你懂的| 久久精品国产精品亚洲精品| 免费看精品久久片| 久久精品国产亚洲a| 国产激情视频一区二区三区欧美| 国产高清久久久久| 91视频观看视频| 9191国产精品| 久久亚洲精品小早川怜子| 久久综合狠狠综合久久综合88| 久久精品亚洲乱码伦伦中文| 中文字幕欧美区| 日韩高清在线不卡| 国产.欧美.日韩| 欧美日韩视频在线观看一区二区三区| 欧美午夜精品一区| 久久欧美一区二区| 亚洲一区二区三区在线| 日韩中文字幕av电影| 国产精品18久久久久| 成人av网站免费| 欧美日韩激情一区二区三区| 精品国产乱码久久久久久图片 | 首页国产丝袜综合| 成人一二三区视频| 欧美一区二区三区日韩视频| 国产欧美日韩在线| 久久精品久久99精品久久| 日本一区二区电影| **性色生活片久久毛片| 免费人成精品欧美精品| 在线亚洲欧美专区二区| 日韩一区日韩二区| 99久久国产综合精品色伊| 日韩精品一区二区三区中文精品| 午夜日韩在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲精品老司机| 成人黄色av电影| 中文字幕av在线一区二区三区| 国产永久精品大片wwwapp | 9i在线看片成人免费| 国产精品妹子av| 色综合久久久久久久久| 亚洲美腿欧美偷拍| 欧美精品一二三| 另类综合日韩欧美亚洲| 精品乱码亚洲一区二区不卡| 久久精品二区亚洲w码| 欧美电视剧免费观看| 免费久久99精品国产| 久久午夜色播影院免费高清 | 韩国在线一区二区| 久久午夜色播影院免费高清| 粉嫩在线一区二区三区视频| 国产精品福利电影一区二区三区四区| 99vv1com这只有精品| 日本在线不卡一区| 中文一区二区在线观看| 欧美在线你懂的| 日韩不卡一二三区| 国产精品免费丝袜| 日韩女优制服丝袜电影| 成人午夜在线播放| 奇米777欧美一区二区| 亚洲成人动漫在线免费观看| 久久日一线二线三线suv| 91福利在线免费观看| 国产一区二区三区免费播放| 亚洲永久免费av| 国产色产综合产在线视频| 91国产视频在线观看| 成人av在线网站| 毛片av一区二区| 一级中文字幕一区二区| 精品少妇一区二区三区日产乱码| 欧美日韩亚洲国产综合| av在线不卡观看免费观看| 国产成人亚洲精品青草天美 | 中文字幕精品一区| 欧美成va人片在线观看| 欧美一级片在线观看| 欧美日韩国产首页| 日韩午夜在线影院| 精品免费视频一区二区| 欧美精品一区二区精品网| 久久久精品欧美丰满| 久久久久久久av麻豆果冻| 久久婷婷国产综合精品青草| 久久综合色天天久久综合图片| 26uuu亚洲综合色| 色av综合在线| 国产综合一区二区| 午夜欧美大尺度福利影院在线看| 中文久久乱码一区二区| 91精品啪在线观看国产60岁| 色偷偷一区二区三区| 首页国产丝袜综合| 国产精品久久久久久久久快鸭| 欧美一区二区三区视频免费 | 精品一区中文字幕| 亚洲欧洲国产专区| 欧美色视频在线观看| 国产精品1区2区3区在线观看| 欧美国产激情二区三区| 国产高清精品网站| 久久99国产精品麻豆| 亚洲午夜精品网| 亚洲视频每日更新| 久久精品免费在线观看| 欧美一区二区二区| 成人免费三级在线| 老司机精品视频一区二区三区| 亚洲综合视频在线| 欧美一区二区三区日韩| 国产日本亚洲高清| 中文一区一区三区高中清不卡| 日韩精品专区在线影院观看| 欧美日韩一区成人| 精品国产乱码久久久久久牛牛| 久久综合色一综合色88| 亚洲国产精华液网站w| 亚洲国产精品尤物yw在线观看| 日韩电影在线免费观看| 国模套图日韩精品一区二区| 久久国产视频网| 色哟哟国产精品免费观看| 国产乱色国产精品免费视频| aaa亚洲精品| 久久无码av三级| 亚洲成人一区在线| 亚洲天天做日日做天天谢日日欢|