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

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

?? matlab100.txt

?? MATLAB程序百例
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
h0=figure('toolbar','none',...
    'position',[200 150 550 350],...
    'name','實例22');
subplot(1,2,1)
x=rand(1,20);
y=rand(1,20);
z=peaks(x,y*pi);
t=delaunay(x,y);
trimesh(t,x,y,z)
hidden off
title('Figure1:Triangular Surface Plot');

subplot(1,2,2)
x=rand(1,20);
y=rand(1,20);
z=peaks(x,y*pi);
t=delaunay(x,y);
trisurf(t,x,y,z)
title('Figure1:Triangular Surface Plot');
實例23:視角的調整

function shili23
h0=figure('toolbar','none',...
    'position',[200 150 450 350],...
    'name','實例23');
x=-5:0.5:5;
[x,y]=meshgrid(x);
r=sqrt(x.^2+y.^2)+eps;
z=sin(r)./r;
subplot(2,2,1)
surf(x,y,z)
xlabel('X-axis')
ylabel('Y-axis')
zlabel('Z-axis')
title('Figure1')
view(-37.5,30)

subplot(2,2,2)
surf(x,y,z)
xlabel('X-axis')
ylabel('Y-axis')
zlabel('Z-axis')
title('Figure2')
view(-37.5+90,30)

subplot(2,2,3)
surf(x,y,z)
xlabel('X-axis')
ylabel('Y-axis')
zlabel('Z-axis')
title('Figure3')
view(-37.5,60)

subplot(2,2,4)
surf(x,y,z)
xlabel('X-axis')
ylabel('Y-axis')
zlabel('Z-axis')
title('Figure4')
view(180,0)
實例24:向量場的繪制

function shili24
h0=figure('toolbar','none',...
    'position',[200 150 450 350],...
    'name','實例24');
subplot(2,2,1)
z=peaks;
ribbon(z)
title('Figure1')

subplot(2,2,2)
[x,y,z]=peaks(15);
[dx,dy]=gradient(z,0.5,0.5);
contour(x,y,z,10)
hold on
quiver(x,y,dx,dy)
hold off
title('Figure2')

subplot(2,2,3)
[x,y,z]=peaks(15);
[nx,ny,nz]=surfnorm(x,y,z);
surf(x,y,z)
hold on
quiver3(x,y,z,nx,ny,nz)
hold off
title('Figure3')

subplot(2,2,4)
x=rand(3,5);
y=rand(3,5);
z=rand(3,5);
c=rand(3,5);
fill3(x,y,z,c)
grid on
title('Figure4')
實例25:燈光定位

function shili25
h0=figure('toolbar','none',...
    'position',[200 150 450 250],...
    'name','實例25');
vert=[1 1 1;1 2 1;
    2 2 1;2 1 1;
    1 1 2;1 2 2;
    2 2 2;2 1 2];
fac=[1 2 3 4;2 6 7 3;
    4 3 7 8;1 5 8 4;
    1 2 6 5;5 6 7 8];
grid off
sphere(36)
h=findobj('type','surface');
set(h,'facelighting','phong',...
    'facecolor',...
    'interp',...
    'edgecolor',[0.4 0.4 0.4],...
    'backfacelighting',...
    'lit')
hold on
patch('faces',fac,'vertices',vert,...
    'facecolor','y');
light('position',[1 3 2]);
light('position',[-3 -1 3]);
material shiny
axis vis3d off
hold off
實例26:柱狀圖

function shili26
h0=figure('toolbar','none',...
    'position',[200 50 450 450],...
    'name','實例26');
subplot(2,1,1)
x=[5 2 1
    8 7 3
    9 8 6
    5 5 5
    4 3 2];
bar(x)
xlabel('X軸');
ylabel('Y軸');
title('第一子圖');

subplot(2,1,2)
y=[5 2 1
    8 7 3
    9 8 6
    5 5 5
    4 3 2];
barh(y)
xlabel('X軸');
ylabel('Y軸');
title('第二子圖');
實例27:設置照明方式

function shili27
h0=figure('toolbar','none',...
    'position',[200 150 450 350],...
    'name','實例27');
subplot(2,2,1)
sphere
shading flat
camlight left
camlight right
lighting flat
colorbar
axis off
title('Figure1')

subplot(2,2,2)
sphere
shading flat
camlight left
camlight right
lighting gouraud
colorbar
axis off
title('Figure2')

subplot(2,2,3)
sphere
shading interp
camlight right
camlight left
lighting phong
colorbar
axis off
title('Figure3')

subplot(2,2,4)
sphere
shading flat
camlight left
camlight right
lighting none
colorbar
axis off
title('Figure4')
實例28:羽狀圖

function shili28
h0=figure('toolbar','none',...
    'position',[200 150 450 350],...
    'name','實例28');
subplot(2,1,1)
alpha=90:-10:0;
r=ones(size(alpha));
m=alpha*pi/180;
n=r*10;
[u,v]=pol2cart(m,n);
feather(u,v)
title('羽狀圖')
axis([0 20 0 10])

subplot(2,1,2)
t=0:0.5:10;
x=0.05+i;
y=exp(-x*t);
feather(y)
title('復數矩陣的羽狀圖')
實例29:立體透視(1)

function shili29
h0=figure('toolbar','none',...
    'position',[200 150 450 250],...
    'name','實例29');
[x,y,z]=meshgrid(-2:0.1:2,...
    -2:0.1:2,...
    -2:0.1:2);
v=x.*exp(-x.^2-y.^2-z.^2);
grid on
for i=-2:0.5:2;
    h1=surf(linspace(-2,2,20),...
        linspace(-2,2,20),...
        zeros(20)+i);
    rotate(h1,[1 -1 1],30)
    dx=get(h1,'xdata');
    dy=get(h1,'ydata');
    dz=get(h1,'zdata');
    delete(h1)
    slice(x,y,z,v,[-2 2],2,-2)
    hold on
    slice(x,y,z,v,dx,dy,dz)
    hold off
    axis tight
    view(-5,10)
    drawnow
end
實例30:立體透視(2)

function shili30
h0=figure('toolbar','none',...
    'position',[200 150 450 250],...
    'name','實例30');
[x,y,z]=meshgrid(-2:0.1:2,...
    -2:0.1:2,...
    -2:0.1:2);
v=x.*exp(-x.^2-y.^2-z.^2);
[dx,dy,dz]=cylinder;
slice(x,y,z,v,[-2 2],2,-2)
for i=-2:0.2:2
    h=surface(dx+i,dy,dz);
    rotate(h,[1 0 0],90)
    xp=get(h,'xdata');
    yp=get(h,'ydata');
    zp=get(h,'zdata');
    delete(h)
    hold on
    hs=slice(x,y,z,v,xp,yp,zp);
    axis tight
    xlim([-3 3])
    view(-10,35)
    drawnow
    delete(hs)
    hold off
end
實例31:表面圖形

function shili31
h0=figure('toolbar','none',...
    'position',[200 150 550 250],...
    'name','實例31');
subplot(1,2,1)
x=rand(100,1)*16-8;
y=rand(100,1)*16-8;
r=sqrt(x.^2+y.^2)+eps;
z=sin(r)./r;
xlin=linspace(min(x),max(x),33);
ylin=linspace(min(y),max(y),33);
[X,Y]=meshgrid(xlin,ylin);
Z=griddata(x,y,z,X,Y,'cubic');
mesh(X,Y,Z)
axis tight
hold on
plot3(x,y,z,'.','Markersize',20)

subplot(1,2,2)
k=5;
n=2^k-1;
theta=pi*(-n:2:n)/n;
phi=(pi/2)*(-n:2:n)'/n;
X=cos(phi)*cos(theta);
Y=cos(phi)*sin(theta);
Z=sin(phi)*ones(size(theta));
colormap([0 0 0;1 1 1])
C=hadamard(2^k);
surf(X,Y,Z,C)
axis square
實例32:沿曲線移動的小球

h0=figure('toolbar','none',...
    'position',[198 56 408 468],...
    'name','實例32');
h1=axes('parent',h0,...
    'position',[0.15 0.45 0.7 0.5],...
    'visible','on');
t=0:pi/24:4*pi;
y=sin(t);
plot(t,y,'b')
n=length(t);
h=line('color',[0 0.5 0.5],...
    'linestyle','.',...
    'markersize',25,...
    'erasemode','xor');
k1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[80 100 50 30],...
    'string','開始',...
    'callback',[...
        'i=1;',...
        'k=1;,',...
        'm=0;,',...
        'while 1,',...
        'if k==0,',...
        'break,',...
        'end,',...
        'if k~=0,',...
        'set(h,''xdata'',t(i),''ydata'',y(i)),',...
        'drawnow;,',...
        'i=i+1;,',...
        'if i>n,',...
        'm=m+1;,',...
        'i=1;,',...
        'end,',...
        'end,',...
        'end']);
k2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[180 100 50 30],...
    'string','停止',...
    'callback',[...
        'k=0;,',...
        'set(e1,''string'',m),',...
        'p=get(h,''xdata'');,',...
        'q=get(h,''ydata'');,',...        
        'set(e2,''string'',p);,',...
        'set(e3,''string'',q)']);
k3=uicontrol('parent',h0,...
    'style','pushbutton',...
    'position',[280 100 50 30],...
    'string','關閉',...
    'callback','close');
e1=uicontrol('parent',h0,...
    'style','edit',...
    'position',[60 30 60 20]);
t1=uicontrol('parent',h0,...
    'style','text',...
    'string','循環次數',...
    'position',[60 50 60 20]);
e2=uicontrol('parent',h0,...
    'style','edit',...
    'position',[180 30 50 20]);
t2=uicontrol('parent',h0,...
    'style','text',...
    'string','終點的X坐標值',...
    'position',[155 50 100 20]);
e3=uicontrol('parent',h0,...
    'style','edit',...
    'position',[300 30 50 20]);
t3=uicontrol('parent',h0,...
    'style','text',...
    'string','終點的Y坐標值',...
    'position',[275 50 100 20]);
實例33:曲線轉換按鈕

h0=figure('toolbar','none',...
    'position',[200 150 450 250],...
    'name','實例33');
x=0:0.5:2*pi;
y=sin(x);
h=plot(x,y);
grid on
huidiao=[...
    'if i==1,',...
    'i=0;,',...
    'y=cos(x);,',...
    'delete(h),',...
    'set(hm,''string'',''正弦函數''),',...
    'h=plot(x,y);,',...
    'grid on,',...
    'else if i==0,',...
    'i=1;,',...
    'y=sin(x);,',...
    'set(hm,''string'',''余弦函數''),',...
    'delete(h),',...
    'h=plot(x,y);,',...
    'grid on,',...
    'end,',...
    'end'];
hm=uicontrol(gcf,'style','pushbutton',...
    'string','余弦函數',...
    'callback',huidiao);
i=1;
set(hm,'position',[250 20 60 20]);
set(gca,'position',[0.2 0.2 0.6 0.6])
title('按鈕的使用')
hold on
實例34:柵格控制按鈕

h0=figure('toolbar','none',...
    'position',[200 150 450 250],...
    'name','實例34');
x=0:0.5:2*pi;
y=sin(x);
plot(x,y)
huidiao1=[...
        'set(h_toggle2,''value'',0),',...
        'grid on,',...
        ];
huidiao2=[...
        'set(h_toggle1,''value'',0),',...
        'grid off,',...
        ];
h_toggle1=uicontrol(gcf,'style','togglebutton',...
    'string','grid on',...
    'value',0,...
    'position',[20 45 50 20],...
    'callback',huidiao1);

h_toggle2=uicontrol(gcf,'style','togglebutton',...
    'string','grid off',...
    'value',0,...
    'position',[20 20 50 20],...
    'callback',huidiao2);
set(gca,'position',[0.2 0.2 0.6 0.6])
title('開關按鈕的使用')
實例35:編輯框的使用

h0=figure('toolbar','none',...
    'position',[200 150 350 250],...
    'name','實例35');
f='Please input the letter';
huidiao1=[...
        'g=upper(f);,',...
        'set(h2_edit,''string'',g),',...
    ];
huidiao2=[...
        'g=lower(f);,',...
        'set(h2_edit,''string'',g),',...
    ];
h1_edit=uicontrol(gcf,'style','edit',...
    'position',[100 200 100 50],...
    'HorizontalAlignment','left',...
    'string','Please input the letter',...
    'callback','f=get(h1_edit,''string'');',...
    'background','w',...
    'max',5,...
    'min',1);
h2_edit=uicontrol(gcf,'style','edit',...
    'HorizontalAlignment','left',...
    'position',[100 100 100 50],...
    'background','w',...
    'max',5,...
    'min',1);
h1_button=uicontrol(gcf,'style','pushbutton',...
    'string','小寫變大寫',...
    'position',[100 45 100 20],...
    'callback',huidiao1);
h2_button=uicontrol(gcf,'style','pushbutton',...
    'string','大寫變小寫',...
    'position',[100 20 100 20],...
    'callback',huidiao2);
實例36:彈出式菜單

h0=figure('toolbar','none',...
    'position',[200 150 450 250],...
    'name','實例36');
x=0:0.5:2*pi;
y=sin(x);
h=plot(x,y);
grid on
hm=uicontrol(gcf,'style','popupmenu',...
    'string',...
    'sin(x)|cos(x)|sin(x)+cos(x)|exp(-sin(x))',...

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区免费观看| 91片在线免费观看| 在线一区二区三区做爰视频网站| 精品国产乱码久久久久久牛牛 | 欧美成人三级电影在线| 天天综合日日夜夜精品| 欧美区一区二区三区| 亚洲一区二区av电影| 精品视频在线免费| 亚洲成av人片| 欧美一区二区三区四区久久 | 国产91丝袜在线18| 国产亚洲一区二区三区四区 | 成人黄色av电影| 国产精品美女久久久久久久久久久| 国产91精品在线观看| 国产欧美精品一区aⅴ影院| 99精品欧美一区二区三区综合在线| 国产精品免费看片| 欧美在线不卡视频| 日韩电影在线一区二区| 亚洲一区二区三区中文字幕在线| 91社区在线播放| 亚洲午夜免费电影| 日韩一区二区三区三四区视频在线观看 | 日韩免费视频线观看| 国产乱人伦精品一区二区在线观看| 国产无遮挡一区二区三区毛片日本| a级精品国产片在线观看| 一区二区三区四区乱视频| 欧美日韩第一区日日骚| 精品午夜一区二区三区在线观看| 久久精品视频在线免费观看| 成人sese在线| 亚洲h在线观看| 26uuu亚洲综合色| 不卡av电影在线播放| 亚洲国产精品久久艾草纯爱| 欧美tk—视频vk| 91丨国产丨九色丨pron| 午夜精品成人在线视频| 2014亚洲片线观看视频免费| 成人白浆超碰人人人人| 婷婷开心久久网| 久久精品欧美日韩精品| 欧美午夜影院一区| 日韩一区精品视频| 国产精品第五页| 欧美精品国产精品| 成人国产在线观看| 麻豆一区二区在线| 久久久久久亚洲综合影院红桃| 91香蕉视频在线| 精品综合久久久久久8888| 亚洲视频一区二区在线| 26uuu欧美| 欧美性一级生活| 国产成人精品综合在线观看| 午夜伦欧美伦电影理论片| 国产精品国产精品国产专区不片| 欧美一级生活片| 一本久久综合亚洲鲁鲁五月天 | 精品无码三级在线观看视频| 亚洲美女屁股眼交| 国产性做久久久久久| 一本久久精品一区二区| 风间由美一区二区av101| 日韩1区2区3区| 亚洲日本一区二区| 国产清纯美女被跳蛋高潮一区二区久久w| jizz一区二区| 国产不卡视频一区二区三区| 秋霞午夜鲁丝一区二区老狼| 一卡二卡三卡日韩欧美| 国产精品高清亚洲| 免费精品99久久国产综合精品| 成人免费一区二区三区视频 | 欧美吻胸吃奶大尺度电影| 成人免费视频一区二区| 狠狠色丁香九九婷婷综合五月| 日韩综合一区二区| 奇米在线7777在线精品| 日韩不卡手机在线v区| 久久精品国产久精国产爱| 国产一区二区三区美女| 国产91露脸合集magnet| 成人精品视频网站| 色婷婷一区二区三区四区| 色天天综合色天天久久| 欧美日韩激情一区| 日韩三级av在线播放| 久久久国产午夜精品| 中文字幕中文字幕一区| 亚洲免费视频中文字幕| 午夜日韩在线观看| 国内久久婷婷综合| www.一区二区| 欧美日韩精品欧美日韩精品一 | 国产精品久久久爽爽爽麻豆色哟哟| 国产日韩欧美高清| 亚洲精品va在线观看| 视频一区免费在线观看| 精品一区二区三区视频在线观看| 成人一级黄色片| 欧美最猛黑人xxxxx猛交| 在线电影国产精品| 国产拍欧美日韩视频二区| 亚洲男人电影天堂| 久久国产人妖系列| 成年人午夜久久久| 4hu四虎永久在线影院成人| 久久人人爽人人爽| 亚洲一区二区三区视频在线| 狠狠色综合色综合网络| 91麻豆免费在线观看| 日韩精品一区二区三区在线播放| 国产精品午夜电影| 视频一区二区欧美| 国产不卡高清在线观看视频| 欧美日精品一区视频| 久久综合国产精品| 亚洲国产综合人成综合网站| 国产精品18久久久久| 91久久免费观看| 久久久久久一二三区| 偷拍亚洲欧洲综合| 成人av电影在线播放| 日韩欧美专区在线| 亚洲综合一区二区三区| 国产麻豆精品95视频| 欧美日韩一区二区欧美激情| 久久久国产精品午夜一区ai换脸| 亚洲va国产va欧美va观看| 成人午夜视频在线| 欧美精品一区二区三区很污很色的| 亚洲日本欧美天堂| 国产91丝袜在线18| 精品福利一二区| 日韩电影在线免费看| 在线观看www91| 国产精品二三区| 国模冰冰炮一区二区| 欧美精品1区2区| 夜夜爽夜夜爽精品视频| 成人激情开心网| 精品噜噜噜噜久久久久久久久试看 | 欧美乱熟臀69xxxxxx| 专区另类欧美日韩| 懂色av一区二区三区蜜臀| 欧美一区二区三区播放老司机| 亚洲精品成人悠悠色影视| 国产91精品在线观看| 久久女同性恋中文字幕| 精品夜夜嗨av一区二区三区| 欧美日韩午夜在线| 亚洲一区二区3| 在线免费亚洲电影| 亚洲免费在线电影| 色婷婷久久久综合中文字幕| 中文字幕一区三区| caoporn国产精品| 国产女主播一区| 国产黄色91视频| 日本一区二区三区在线观看| 国产麻豆精品95视频| 久久新电视剧免费观看| 国产伦精品一区二区三区视频青涩 | 国产综合成人久久大片91| 日韩欧美视频在线| 美女诱惑一区二区| 欧美va亚洲va香蕉在线| 国产一区二区三区免费在线观看| 久久色在线视频| 国产91精品一区二区麻豆亚洲| 欧美高清在线一区| 91性感美女视频| 亚洲午夜电影在线| 欧美一区二区三区在线观看| 日本不卡高清视频| 2021国产精品久久精品| 丁香啪啪综合成人亚洲小说| 亚洲欧美一区二区在线观看| 91捆绑美女网站| 天堂一区二区在线| 欧美成人免费网站| 国产成人高清在线| 亚洲人成在线播放网站岛国| 精品视频一区二区不卡| 欧美aaaaa成人免费观看视频| 精品国产麻豆免费人成网站| 成人自拍视频在线观看| 亚洲久草在线视频| 5858s免费视频成人| 狠狠色狠狠色合久久伊人| 国产精品国产自产拍在线| 欧美在线一区二区| 久久精品99国产精品日本| 亚洲国产成人在线| 欧美日韩午夜精品| 国产成人午夜精品影院观看视频|