亚洲欧美第一页_禁久久精品乱码_粉嫩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热精品国产| 蜜芽一区二区三区| 国产欧美精品一区二区色综合| 色噜噜狠狠色综合欧洲selulu| 国产成人av一区二区三区在线| 亚洲愉拍自拍另类高清精品| 精品久久久影院| 欧美日韩一区二区三区四区五区| 久久成人麻豆午夜电影| 一区二区三区精品在线| 欧美国产日本视频| 久久综合久久99| 日韩欧美一区二区在线视频| 色呦呦网站一区| 成人动漫一区二区在线| 精品一区二区久久久| 亚洲高清视频中文字幕| 亚洲精品国产精品乱码不99| 中文字幕欧美区| 国产日产欧美一区二区视频| 精品国免费一区二区三区| 91精品国产91综合久久蜜臀| 欧美三级中文字幕在线观看| 色综合天天综合网天天看片 | 成人免费在线播放视频| 欧美极品aⅴ影院| 中文字幕在线不卡视频| 日韩视频一区在线观看| 精品日韩欧美一区二区| 亚洲精品一区二区三区四区高清| 欧美不卡一区二区三区四区| 久久人人爽人人爽| 国产精品理论片| 一个色在线综合| 日韩二区三区四区| 国产成人在线观看| 色成人在线视频| 久久综合久久综合久久| 亚洲免费毛片网站| 久久99精品国产麻豆婷婷洗澡| 99视频超级精品| 欧美α欧美αv大片| 一区二区三区四区精品在线视频| 久久电影国产免费久久电影 | 麻豆成人综合网| 亚洲欧美经典视频| 欧美成人伊人久久综合网| 中文字幕一区二区三区不卡在线| 婷婷夜色潮精品综合在线| 韩国av一区二区三区四区 | 日产欧产美韩系列久久99| 丁香婷婷综合色啪| 日韩免费观看高清完整版在线观看| 国产精品五月天| 九九**精品视频免费播放| 欧美精品视频www在线观看| 国产精品色哟哟网站| 国产最新精品免费| 欧美mv日韩mv| 精品影院一区二区久久久| 欧美精品一区二区三区高清aⅴ| 亚洲午夜在线视频| 欧美日韩国产综合一区二区三区| 亚洲日本电影在线| av欧美精品.com| 国产精品女上位| 色综合色综合色综合| 一区二区三区精品| 欧美午夜一区二区三区免费大片| 亚洲高清免费观看| 欧美变态凌虐bdsm| 国产成人亚洲综合a∨婷婷 | 精品美女一区二区| 国产高清不卡一区| 一区二区三区中文字幕在线观看| 在线视频国内一区二区| 蜜臀av性久久久久蜜臀aⅴ四虎 | 亚洲成av人综合在线观看| 欧美日韩亚洲丝袜制服| 日韩精品一二三四| 日韩精品一区二区三区中文精品| 国产91精品一区二区麻豆网站 | 不卡的av中国片| 亚洲成av人**亚洲成av**| 日韩欧美国产综合一区 | 国产亚洲人成网站| 色网站国产精品| 久久精品久久99精品久久| 国产精品久久久久久久久免费相片| 色一情一伦一子一伦一区| 国产一区不卡精品| 午夜精品久久久久久不卡8050| 久久久91精品国产一区二区精品 | 色综合天天综合色综合av| 麻豆专区一区二区三区四区五区| 国产精品久久久久久久裸模| 日韩欧美国产综合在线一区二区三区 | 91网站视频在线观看| 久久丁香综合五月国产三级网站| 亚洲一二三四久久| 亚洲日本青草视频在线怡红院 | 精品中文字幕一区二区| 亚洲国产综合人成综合网站| 久久久久久久久久久黄色| 久久久久99精品一区| 精品欧美久久久| 日韩精品中文字幕一区二区三区| 欧美日韩一区二区在线观看视频| 色偷偷久久一区二区三区| 国产精品正在播放| 粉嫩av一区二区三区| 99视频一区二区三区| 欧洲国内综合视频| 欧美日韩aaaaaa| ww亚洲ww在线观看国产| 国产日韩欧美精品一区| 国产精品高清亚洲| 亚洲精品视频在线观看网站| 亚洲.国产.中文慕字在线| 另类中文字幕网| 国产91精品一区二区麻豆网站| 91麻豆免费观看| 欧美日韩精品三区| 2020国产精品自拍| 一区二区三区中文字幕电影| 日韩av午夜在线观看| 国产经典欧美精品| 色狠狠综合天天综合综合| 欧美日韩成人高清| 亚洲欧洲日产国码二区| 日韩1区2区日韩1区2区| 99国产精品久| 国产欧美一区二区三区在线看蜜臀 | 国产91在线观看| 欧美激情中文字幕一区二区| 视频一区中文字幕国产| 色综合久久久网| 中文欧美字幕免费| 激情综合色综合久久| 91精品国产91久久综合桃花 | 精品视频在线看| 日本伊人精品一区二区三区观看方式| 精品一区二区免费视频| 欧美电影免费观看高清完整版在| 亚洲成人精品一区| 精品视频免费在线| 一区二区日韩电影| 色噜噜夜夜夜综合网| 亚洲精品中文在线观看| 欧美性受xxxx黑人xyx| 亚洲视频综合在线| 色拍拍在线精品视频8848| 亚洲品质自拍视频网站| 色综合亚洲欧洲| 亚洲国产va精品久久久不卡综合| 91免费版在线| 天堂午夜影视日韩欧美一区二区| 欧美嫩在线观看| 韩国一区二区三区| **性色生活片久久毛片| 一本色道a无线码一区v| 日本中文字幕一区二区有限公司| 日韩一区二区精品| 国产激情视频一区二区三区欧美| 亚洲日本乱码在线观看| 91精品婷婷国产综合久久竹菊| 秋霞电影网一区二区| 久久影视一区二区| 欧美又粗又大又爽| 国产乱妇无码大片在线观看| 一区二区三区高清不卡| 26uuu亚洲综合色| 欧美性欧美巨大黑白大战| 国产激情偷乱视频一区二区三区| 亚洲精品中文在线| 欧美国产97人人爽人人喊| 欧美精品三级在线观看| 色综合色狠狠综合色| 国产美女精品人人做人人爽| 亚洲丰满少妇videoshd| 国产精品国产精品国产专区不蜜| 欧美成人一区二区| 欧美日韩一区二区在线观看| 91丝袜美腿高跟国产极品老师| 国产黄色精品网站| 国产一区不卡在线| 寂寞少妇一区二区三区| 午夜国产不卡在线观看视频| 亚洲自拍偷拍综合| 中文字幕在线观看不卡| ...中文天堂在线一区| 中文字幕国产一区二区| 亚洲国产精华液网站w| 国产亲近乱来精品视频 | 99久久伊人精品|