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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? matlab實(shí)用程序百例2.txt

?? 實(shí)用程序 對(duì)于初學(xué)MATLAB的人 很有幫助 也給編程節(jié)省不少時(shí)間
?? TXT
?? 第 1 頁 / 共 5 頁
字號(hào):
shading interp
view([-60 30])
camlight left
lightk=light('position',[0 -2 1]);
button1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','設(shè)置光線',...
    'position',[80 60 70 30],...
    'callback',[...
        'an1=inputdlg(''光線來源的X軸坐標(biāo)'');,',...
        'k1=str2num(an1{1});,',...
        'an2=inputdlg(''光線來源的Y軸坐標(biāo)'');,',...
        'k2=str2num(an2{1});,',...
        'an3=inputdlg(''光線來源的Z軸坐標(biāo)'');,',...
        'k3=str2num(an3{1});,',...
        'set(lightk,''position'',[k1 k2 k3]);,',...
        'set(edit1,''string'',[''['',num2str(k1),'' '',num2str(k2),'' '',num2str(k3),'']'']);']);
button2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','關(guān)閉',...
    'position',[250 60 70 30],...
    'callback','close');
edit1=uicontrol('parent',h0,...
    'style','edit',...
    'max',2,...
    'min',0,...
    'fontsize',15,...
    'backgroundcolor',[1 1 1],...
    'string','[0 -2 1]',...
    'position',[80 110 220 30]);
text1=uicontrol('parent',h0,...
    'style','text',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'fontsize',15,...
    'string','光線來源坐標(biāo)',...
    'position',[80 140 220 30]);

實(shí)例54:添加效果

h0=figure('toolbar','none',...
    'position',[200 50 300 350],...
    'name','實(shí)例54');
h1=axes('parent',h0,...
    'position',[0.2 0.4 0.6 0.6],...
    'visible','off');
ezsurf('sin(sqrt(x.^2+y.^2))/sqrt(x.^2+y.^2)',[-6*pi,6*pi])
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','設(shè)置',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[40 50 50 20],...
    'callback',[...
        'view(0,75);,',...
        'shading interp;,',...
        'lightangle(-45,30);,',...
        'k=findobj(gca,''type'',''surface'');,'...
        'set(k,''facelighting'',''phong'');,',...
        'set(k,''ambientstrength'',0.3);,',...
        'set(k,''diffusestrength'',0.8);,',...
        'set(k,''specularstrength'',0.9);,',...
        'set(k,''specularexponent'',25);,',...
        'set(k,''backfacelighting'',''unlit'')']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','關(guān)閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[120 50 50 20],...
    'callback','close');

實(shí)例55:查詢?nèi)掌?
h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實(shí)例55');
h1=axes('parent',h0,...
    'position',[0.15 0.5 0.7 0.5],...
    'visible','off');
huidiao=[...
        'yearnum=str2num(get(edit1,''string''));,',...
        'monthnum=str2num(get(edit2,''string''));,',...
        'daynum=str2num(get(edit3,''string''));,',...
        'monthday=[0 31 28 31 30 31 30 31 31 30 31 30 31];,',...
        'dyear=yearnum-2000;,',...
        'beishu=fix(dyear/4);,',...
        'yushu=rem(yearnum,4);,',...
        'if yushu==0,',...
        'monthday(3)=29;,',...
        'end,',...
        'mday=0;,',...
        'for i=1:monthnum,',...
        'mday=monthday(i)+mday;,',...
        'end,',...
        'yearday=mday+daynum-1;,',...
        'noweek=fix(yearday/7);,',...
        'set(edit5,''string'',[''第'',num2str(noweek),''周'']);,',...
        'if dyear>0,',...
        'if yushu==0,',...
        'beishu=beishu-1;,',...
        'end,',...
        'dday=yearday+365*dyear+beishu+1;,',...
        'end,',...
        'if dyear<=0,',...
        'dday=365*dyear+yearday+beishu;,',...
        'end,',...
        'mweek=rem(dday,7)+7;,',...
        'if mweek==8,',...
        'set(edit4,''string'',''Sunday'');,',...
        'end,',...
        'if mweek==9,',...
        'set(edit4,''string'',''Monday'');,',...
        'end,',...
        'if mweek==10,',...
        'set(edit4,''string'',''Tuesday'');,',...
        'end,',...
        'if mweek==11,',...
        'set(edit4,''string'',''Wednesday'');,',...
        'end,',...
        'if mweek==12,',...
        'set(edit4,''string'',''Thursday'');,',...
        'end,',...
        'if mweek==13,',...
        'set(edit4,''string'',''Friday'');,',...
        'end,',...
        'if mweek==7,',...
        'set(edit4,''string'',''Saturday'');,',...
        'end,',...
        'if mweek==6,',...
        'set(edit4,''string'',''Friday'');,',...
        'end,',...
        'if mweek==5,',...
        'set(edit4,''string'',''Thursday'');,',...
        'end,',...
        'if mweek==4,',...
        'set(edit4,''string'',''Wednesday'');,',...
        'end,',...
        'if mweek==3,',...
        'set(edit4,''string'',''Tuesday'');,',...
        'end,',...
        'if mweek==2,',...
        'set(edit4,''string'',''Monday'');,',...
        'end,',...
        'if mweek==1,',...
        'set(edit4,''string'',''Sunday'');,',...
        'end'];
edit1=uicontrol('parent',h0,...
    'style','edit',...
    'horizontalalignment','right',...
    'position',[40 300 50 20]);
text1=uicontrol('parent',h0,...
    'style','text',...
    'string','年',...
    'horizontalalignment','left',...
    'position',[90 300 50 20]);
edit2=uicontrol('parent',h0,...
    'style','edit',...
    'horizontalalignment','right',...
    'position',[160 300 50 20]);
text2=uicontrol('parent',h0,...
    'style','text',...
    'string','月',...
    'horizontalalignment','left',...
    'position',[210 300 50 20]);
edit3=uicontrol('parent',h0,...
    'style','edit',...
    'horizontalalignment','right',...
    'position',[280 300 50 20]);
text3=uicontrol('parent',h0,...
    'style','text',...
    'string','日',...
    'horizontalalignment','left',...
    'position',[330 300 50 20]);
edit4=uicontrol('parent',h0,...
    'style','edit',...
    'horizontalalignment','left',...
    'position',[210 200 120 20]);
text4=uicontrol('parent',h0,...
    'style','text',...
    'string','查找的日期為',...
    'horizontalalignment','right',...
    'position',[110 200 100 20]);
edit5=uicontrol('parent',h0,...
    'style','edit',...
    'horizontalalignment','left',...
    'position',[210 100 120 20]);
text1=uicontrol('parent',h0,...
    'style','text',...
    'string','該日處于',...
    'horizontalalignment','left',...
    'position',[160 100 50 20]);
button1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[80 40 80 30],...
    'string','開始',...
    'callback',huidiao);
button2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[220 40 80 30],...
    'string','關(guān)閉',...
    'callback','close'); 
實(shí)例56:圖形效果(1)

h0=figure('toolbar','none',...
    'position',[198 56 450 468],...
    'name','實(shí)例56');
h1=axes('parent',h0,...
    'position',[0.3 0.45 0.5 0.5],...
    'visible','off');
l1=uimenu(gcf,'label','Draw figure',...
    'tag','l1');
huidiao=[...
        'if get(r1,''value'')==1,',...
        'shading faceted,',...
        'end,',...
        'if get(r2,''value'')==1,',...
        'shading flat,',...
        'end,',...
        'if get(r3,''value'')==1,',...
        'shading interp,',...
        'end,',...
        'k=get(p1,''value'');,',...
        'switch k,',...
        'case 1,',...
        'colormap(''cool''),',...
        'case 2,',...
        'colormap(''spring''),',...
        'case 3,',...
        'colormap(''summer''),',...
        'case 4,',...
        'colormap(''autumn''),',...
        'case 5,',...
        'colormap(''winter''),',...
        'end'];
l11=uimenu('parent',l1,...
    'label','Surface',...
    'tag','l11',...
    'callback',[...
        '[x,y]=meshgrid(-8:0.5:8);,',...
        'r=sqrt(x.^2+y.^2)+eps;,',...
        'z=sin(r)./r;,',...
        'surf(x,y,z),',...
        huidiao]);
l12=uimenu('parent',l1,...
    'label','Mesh',...
    'tag','l12',...
    'callback',[...
        'mesh(peaks),',...
        huidiao]);
l13=uimenu('parent',l1,...
    'label','Membrane',...
    'tag','l13',...
    'callback',[...
        'mesh(membrane),',...
        huidiao]);
f1=uicontrol('parent',h0,...
    'units','points',...
    'listboxtop',0,...
    'position',[12 6 100 101],...
    'style','frame',...
    'tag','f1');
r1=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 58.5 72.75 16.5],...
    'string','shading faceted',...
    'style','radiobutton',...
    'tag','r1',...
    'value',1,...
    'callback',[...
        'shading faceted,',...
        'set(r1,''value'',1);,',...
        'set(r2,''value'',0);,',...
        'set(r3,''value'',0);']);
r2=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 35.25 78.75 18.75],...
    'string','shading flat',...
    'style','radiobutton',...
    'tag','r2',...
    'value',0,...
    'callback',[...
        'shading flat,',...
        'set(r2,''value'',1);,',...
        'set(r1,''value'',0);,',...
        'set(r3,''value'',0);']);
r3=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[19.5 12.75 71.25 18.75],...
    'string','shading interp',...
    'style','radiobutton',...
    'tag','r3',...
    'value',0,...
    'callback',[...
        'shading interp,',...
        'set(r3,''value'',1);,',...
        'set(r1,''value'',0);,',...
        'set(r2,''value'',0);']);
t1=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'fontsize',12,...
    'listboxtop',0,...
    'position',[14.25 75.75 90.75 22.5],...
    'string','平滑處理',...
    'style','text',...
    'tag','t1');
t2=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'fontsize',12,...
    'listboxtop',0,...
    'position',[117 69 72.75 17.5],...
    'string','設(shè)置色調(diào)',...
    'style','text',...
    'tag','t2');
p1=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[116.25 39 72.75 20.25],...
    'string','Cool|Spring|Summer|Autumn|Winter',...
    'style','popupmenu',...
    'tag','p1',...
    'value',1,...
    'callback',[...
        'k=get(p1,''value'');,',...
        'switch k,',...
        'case 1,',...
        'colormap(''cool''),',...
        'case 2,',...
        'colormap(''spring''),',...
        'case 3,',...
        'colormap(''summer''),',...
        'case 4,',...
        'colormap(''autumn''),',...
        'case 5,',...
        'colormap(''winter''),',...
        'end']);
b1=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[12 243 72.75 30.75],...
    'string','關(guān)閉',...
    'tag','b1',...
    'callback','close');
b2=uicontrol('parent',h0,...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'position',[216.75 67.5 83.25 18.75],...
    'string','Colorbar',...
    'tag','b2',...
    'callback','colorbar');

實(shí)例57:圖形效果

h0=figure('toolbar','none',...
    'position',[168 94.5 315 289.5],...
    'name','實(shí)例57');
h1=axes('parent',h0,...
    'position',[0.4 0.4 0.5 0.5],...
    'visible','off');
f1=uicontrol('parent',h0,...
    'style','frame',...
    'position',[15 10 80 70],...
    'string','dull',...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'tag','r1',...
    'value',1,...
    'callback',[...
        'set(r1,''value'',1);,',...
        'set(r2,''value'',0);,',...
        'set(r3,''value'',0);,',...
        'material dull']);
r1=uicontrol('parent',h0,...
    'style','radiobutton',...
    'position',[19.5 58.5 72.75 16.5],...
    'string','dull',...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'tag','r1',...
    'value',1,...
    'callback',[...
        'set(r1,''value'',1);,',...
        'set(r2,''value'',0);,',...
        'set(r3,''value'',0);,',...
        'material dull']);
r2=uicontrol('parent',h0,...
    'style','radiobutton',...
    'position',[19.5 35.25 72.75 16.5],...
    'string','metal',...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'tag','r2',...
    'value',0,...
    'callback',[...
        'set(r2,''value'',1);,',...
        'set(r1,''value'',0);,',...
        'set(r3,''value'',0);,',...
        'material metal']);
r3=uicontrol('parent',h0,...
    'style','radiobutton',...
    'position',[19.5 12.75 72.75 16.5],...
    'string','shiny',...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'tag','r3',...
    'value',0,...
    'callback',[...
        'set(r3,''value'',1);,',...
        'set(r1,''value'',0);,',...
        'set(r2,''value'',0);,',...
        'material shiny']);
u1=uimenu('parent',h0,...
    'label','繪圖',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'tag','u1',...
    'callback',[...
        '[x,y]=meshgrid(-8:0.5:8);,',...
        'r=sqrt(x.^2+y.^2)+eps;,',...
        'z=sin(r)./r;,',...
        'surf(x,y,z),',...
        'shading interp']);
b1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[19.5 150 60 20],...
    'string','light',...
    'units','points',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'listboxtop',0,...
    'tag','b1',...

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲精品久| 夜夜嗨av一区二区三区中文字幕 | 亚洲欧美乱综合| 91超碰这里只有精品国产| 成人午夜免费视频| 欧美aⅴ一区二区三区视频| 国产亚洲污的网站| 日韩一区二区三区电影在线观看| 99在线精品视频| 精品夜夜嗨av一区二区三区| 亚洲一区二区三区四区在线免费观看 | 久久国产精品第一页| 亚洲人成亚洲人成在线观看图片| 亚洲精品一区二区三区福利| 在线亚洲精品福利网址导航| 成人午夜av电影| 国产一区二区三区国产| 美女视频网站久久| 亚洲成人免费观看| 一区二区成人在线| 国产精品久久久久永久免费观看| 精品va天堂亚洲国产| 欧美一区二区三区色| 欧美色综合影院| 欧美自拍偷拍一区| 色94色欧美sute亚洲线路二| 懂色av一区二区在线播放| 国模冰冰炮一区二区| 久久99久国产精品黄毛片色诱| 亚洲资源在线观看| 久久69国产一区二区蜜臀| 免费在线观看成人| 日本91福利区| 日本伊人午夜精品| 免费三级欧美电影| 日本视频在线一区| 美女视频网站黄色亚洲| 麻豆专区一区二区三区四区五区| 三级久久三级久久| 免费在线观看一区二区三区| 婷婷久久综合九色综合伊人色| 亚洲成人资源网| 天堂久久久久va久久久久| 亚洲a一区二区| 日韩av中文字幕一区二区三区| 青青草91视频| 韩国女主播一区| 国产电影一区在线| 99精品在线免费| 欧美私人免费视频| 欧美一卡二卡在线观看| 精品少妇一区二区三区日产乱码 | 欧洲人成人精品| 欧美性大战久久| 欧美人与禽zozo性伦| 在线不卡免费欧美| 精品福利二区三区| 欧美高清在线精品一区| 亚洲国产成人一区二区三区| 久久99精品久久久久久| 久久国产日韩欧美精品| 精品一区二区三区免费毛片爱| 国内精品在线播放| 成人免费看的视频| 欧美在线制服丝袜| 日韩精品自拍偷拍| 国产精品九色蝌蚪自拍| 亚洲成年人影院| 国产一区二区看久久| 色视频成人在线观看免| 欧美精品一二三| 欧美极品aⅴ影院| 亚洲精品日日夜夜| 九九九久久久精品| av爱爱亚洲一区| 欧美精品国产精品| 久久精品人人做人人综合| 综合色天天鬼久久鬼色| 日本三级韩国三级欧美三级| 成人一道本在线| 欧美久久久久久久久中文字幕| 2021国产精品久久精品| 一区二区在线免费观看| 久久www免费人成看片高清| 91亚洲永久精品| 日韩欧美国产精品| 亚洲欧美色一区| 久久99精品国产.久久久久久 | 精品国产一区二区三区久久影院 | 精品视频在线免费观看| 久久久久久久久久久电影| 一区二区三区高清在线| 国产精品99久久不卡二区| 欧美三级资源在线| 国产精品免费av| 日本在线不卡一区| 91久久精品一区二区| 精品剧情在线观看| 午夜私人影院久久久久| 成人深夜在线观看| 欧美大片在线观看一区二区| 亚洲欧洲国产日韩| 国产一区二区免费看| 337p亚洲精品色噜噜噜| 亚洲美女免费在线| 日韩一区二区中文字幕| 中文字幕一区二区三区四区不卡 | 欧美国产国产综合| 男人的天堂亚洲一区| 91搞黄在线观看| 国产精品白丝在线| 久久se这里有精品| 欧美一区二区三区在线电影| 一区二区激情视频| 99久久精品一区| 国产欧美精品一区二区色综合 | 国产在线国偷精品产拍免费yy| 欧美图区在线视频| 亚洲黄网站在线观看| 国产99久久精品| 日本一区二区三区在线不卡| 九九精品视频在线看| 日韩免费高清视频| 麻豆一区二区99久久久久| 欧美精品一二三区| 婷婷国产v国产偷v亚洲高清| 欧美色图激情小说| 亚洲国产毛片aaaaa无费看| 色综合久久久久| 亚洲天堂免费在线观看视频| voyeur盗摄精品| 亚洲婷婷综合色高清在线| 国产99精品国产| 国产目拍亚洲精品99久久精品| 国产精品一区二区x88av| 国产亚洲欧美在线| 国产美女精品人人做人人爽| 国产性天天综合网| 成人av在线网站| 亚洲色图制服丝袜| 日本精品一区二区三区高清 | 国产高清不卡一区| 日本一区二区三区国色天香| 国产999精品久久| 中文字幕中文字幕在线一区 | 青青草精品视频| 精品国产91亚洲一区二区三区婷婷| 精品一区二区三区在线观看国产| 欧美大黄免费观看| 国产成人精品综合在线观看 | 中文字幕成人av| 91亚洲精品乱码久久久久久蜜桃| 亚洲人精品一区| 欧美日韩一区二区三区在线看| 色综合久久88色综合天天| 一区二区三区四区激情| 欧美喷水一区二区| 激情综合色丁香一区二区| 国产亚洲成av人在线观看导航| 成人动漫av在线| 一级精品视频在线观看宜春院 | 欧美亚州韩日在线看免费版国语版| 亚洲国产日韩a在线播放| 欧美一区二区三区影视| 国产成人综合精品三级| 一区二区三区日韩欧美| 91精品国产色综合久久不卡电影| 国产一区二区成人久久免费影院| 国产精品第13页| 欧美一卡2卡3卡4卡| 国产成人av一区二区三区在线 | 成人免费在线观看入口| 欧美日韩在线直播| 国内国产精品久久| 亚洲精品中文在线| 精品国产乱码久久久久久蜜臀 | 麻豆精品一区二区av白丝在线| 国产日韩亚洲欧美综合| 欧洲国内综合视频| 青青草视频一区| 亚洲日本在线天堂| 精品精品欲导航| 色综合久久综合网欧美综合网| 免费久久99精品国产| 中文字幕在线不卡国产视频| 欧美日韩一区二区三区视频| 高清不卡在线观看av| 亚洲午夜av在线| 看片网站欧美日韩| 一区二区三区四区中文字幕| 欧美大片在线观看| 欧美中文字幕一区| 丁香激情综合国产| 久久精品国产在热久久| 亚洲国产一二三| 国产精品电影一区二区| 欧美精品一区男女天堂| 欧美亚日韩国产aⅴ精品中极品| 国产成人精品一区二| 麻豆成人免费电影|