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

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

?? matlab100.txt

?? MATLAB程序百例
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
        'set(h1,''value'',0)']);
e1=uicontrol(gcf,'style','edit',...
    'position',[80 150 100 20]);
e2=uicontrol(gcf,'style','edit',...
    'position',[80 110 100 20]);
e3=uicontrol(gcf,'style','edit',...
    'position',[80 70 100 20]);
b1=uicontrol(gcf,'style','pushbutton',...
    'string','運算',...
    'position',[200 150 80 30],...
    'callback',[...
        'x=str2num(get(e1,''string''));,',...
        'y=str2num(get(e2,''string''));,',...
        'switch k,',...
        'case 1,',...
        'z=x+y;,',...
        'case 2,',...
        'z=x-y;,',...
        'case 3,',...
        'z=x*y;,',...
        'end,',...
        'set(e3,''string'',num2str(z))']);
b2=uicontrol(gcf,'style','pushbutton',...
    'string','退出',...
    'position',[200 100 80 30],...
    'callback','close');
實例46:曲線色彩的修改

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',...
    'backgroundcolor','r',...
    'position',[60 100 50 30],...
    'callback','set(k,''color'',''r'')');
p2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'backgroundcolor','g',...
    'position',[170 100 50 30],...
    'callback','set(k,''color'',''g'')');
p3=uicontrol('parent',h0,...
    'style','pushbutton',...
    'backgroundcolor','b',...
    'position',[280 100 50 30],...
    'callback','set(k,''color'',''b'')');
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]);




實例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',...

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区免费视频| 中文字幕一区日韩精品欧美| 久久av中文字幕片| 中文字幕日韩欧美一区二区三区| 国产精品高潮呻吟| 欧美激情一区二区三区四区| 欧美色窝79yyyycom| 国产一区二区免费在线| 夜夜亚洲天天久久| 一区免费观看视频| 日本午夜精品一区二区三区电影| 一区二区激情小说| 久88久久88久久久| 国产一二精品视频| 欧美日韩三级一区二区| 欧美一区二区三区免费在线看| 色一区在线观看| 欧美少妇xxx| 国产视频一区在线播放| 久久这里只有精品6| 精品嫩草影院久久| 欧美本精品男人aⅴ天堂| 亚洲一区在线看| 成人免费毛片嘿嘿连载视频| 国产成人av资源| 色又黄又爽网站www久久| 久久久久久99精品| 亚洲嫩草精品久久| 青青草成人在线观看| 久久精品国产一区二区三| 欧美中文字幕久久| 国产亚洲欧美日韩日本| 精品一区二区影视| 91精品国产综合久久香蕉麻豆| 日韩一区二区三区视频在线| 久久午夜老司机| 韩国三级电影一区二区| 91精品福利视频| 精品噜噜噜噜久久久久久久久试看| 一区二区三区免费在线观看| 91香蕉视频在线| 欧美v日韩v国产v| 久久不见久久见免费视频7| 欧美一区二区三区视频免费播放| 日韩精品电影一区亚洲| 99re这里只有精品视频首页| 日韩欧美成人一区| 亚洲国产aⅴ成人精品无吗| 国内欧美视频一区二区| 欧美激情在线免费观看| 91网上在线视频| 午夜电影久久久| 欧美午夜精品一区| 麻豆精品久久久| 91精品国产综合久久国产大片| 日本在线不卡视频| 久久精品欧美一区二区三区不卡 | 国产一区二区三区综合| 国产欧美一二三区| 福利一区福利二区| 久久精品一区二区三区四区| av激情综合网| 亚洲欧美日韩国产中文在线| 日韩三级在线观看| 色婷婷av一区| 国产盗摄精品一区二区三区在线 | 国产精品1区二区.| 久久精品一区八戒影视| 欧美色男人天堂| av一二三不卡影片| 裸体歌舞表演一区二区| 亚洲一区二区三区自拍| 国产精品美女久久福利网站| 成人免费av网站| 美女任你摸久久| 亚洲一区二区在线观看视频| 国产精品欧美经典| 久久精品视频一区二区三区| 欧美成人在线直播| 欧美男同性恋视频网站| 国产一区999| 国产自产视频一区二区三区| 偷拍日韩校园综合在线| 亚洲精品视频一区| 欧美一区二视频| 欧美人与禽zozo性伦| 91麻豆.com| 色8久久精品久久久久久蜜| 99久久99久久精品免费看蜜桃| 国产二区国产一区在线观看| 欧美三级视频在线观看| 国产成人日日夜夜| 成人免费黄色大片| 波多野结衣欧美| 色呦呦国产精品| 欧美午夜寂寞影院| 91精品啪在线观看国产60岁| 日韩一区二区精品葵司在线| 日韩精品一区二区三区视频播放| 日韩久久久久久| 中文天堂在线一区| 国产精品成人一区二区三区夜夜夜| 国产喂奶挤奶一区二区三区| 中文字幕av资源一区| 亚洲自拍偷拍欧美| 久久精品国产**网站演员| 国产成人免费视频精品含羞草妖精| 成人一级黄色片| 欧美在线视频日韩| 精品日韩一区二区三区免费视频| 国产偷国产偷精品高清尤物| 亚洲另类中文字| 韩国av一区二区| 在线精品观看国产| 欧美sm极限捆绑bd| 国产精品亚洲一区二区三区妖精| 成人精品视频一区| 日韩视频免费直播| 亚洲天堂av一区| 国产精品青草久久| 奇米影视一区二区三区| 91麻豆视频网站| 久久免费电影网| 轻轻草成人在线| 日本韩国欧美一区二区三区| 久久老女人爱爱| 日韩精品五月天| 91福利视频久久久久| 久久久久国产免费免费| 蜜臀va亚洲va欧美va天堂| 色综合久久综合网欧美综合网| 精品国产乱码久久久久久闺蜜| 久久影院电视剧免费观看| 日本中文一区二区三区| 91久久久免费一区二区| 日韩美女啊v在线免费观看| 国产乱色国产精品免费视频| 欧美日韩国产免费| 亚洲综合自拍偷拍| 91欧美一区二区| 亚洲日本在线天堂| 欧美最猛黑人xxxxx猛交| 久久国产福利国产秒拍| 欧美va在线播放| 九色|91porny| 国产日产欧产精品推荐色 | 久久精品视频一区| 国产精品一区免费视频| 国产亚洲成aⅴ人片在线观看 | 欧美三级电影一区| 亚洲国产精品麻豆| 在线不卡一区二区| 国产精品成人一区二区三区夜夜夜 | 在线观看免费视频综合| 一区二区三区在线看| 精品视频1区2区| 伦理电影国产精品| 国产欧美日韩中文久久| 色哟哟一区二区| 亚洲国产精品一区二区www在线| 中文字幕高清不卡| 不卡免费追剧大全电视剧网站| 欧美日韩一级二级三级| 日韩成人一区二区三区在线观看| 日韩欧美激情在线| 成人午夜精品一区二区三区| 一区二区三区四区在线免费观看| 欧美视频你懂的| 国产乱码精品一区二区三区忘忧草 | 激情综合网最新| 亚洲日本免费电影| 精品国产伦理网| 91蜜桃网址入口| 免费人成精品欧美精品| 国产精品久久久久久久久久久免费看| 日本韩国欧美国产| 狠狠色丁香久久婷婷综合丁香| 一区在线播放视频| 久久众筹精品私拍模特| 91国内精品野花午夜精品| 国产精品一卡二卡在线观看| av中文字幕亚洲| 毛片一区二区三区| 亚洲主播在线观看| 国产精品不卡视频| 久久综合久久99| 欧美一区日韩一区| 一本久道中文字幕精品亚洲嫩| 国产精品亚洲第一| 久久电影网站中文字幕| 天天色 色综合| 亚洲综合一二区| 亚洲天堂a在线| 中文字幕中文字幕一区二区| 久久久国产精华| 国产精品视频看| 国产精品少妇自拍| 国产精品蜜臀在线观看| 国产精品欧美久久久久无广告| 久久久99久久|