代码搜索结果

找到约 10,000 项符合 7 的代码

7-18.m

subplot(121) surf(peaks); title('旋转前图形'); subplot(122) h=surf(peaks); rotate(h,[1 0 1],180) title('旋转后图形');

7-17.m

%本例中主要针对上面一些函数指令给出一些示例 %图形1 绘制轮廓线、网格图、曲面图、轮廓网格图 subplot(221); f = ['3*(1-x)^2*exp(-(x^2)-(y+1)^2)',... '- 10*(x/5 - x^3 - y^5)*exp(-x^2-y^2)',... '- 1/3*exp(-(x+1)^2 - y^2)']; %定义双

7-4.m

t = 0:pi/50:10*pi; i=1; h=plot3(sin(t(i)),cos(t(i)),t(i),'*','erasemode','none'); %设定擦除模式 grid on axis([-2 2 -2 2 -1 10*pi]) title '程序动画示例' for i=2:length(t) set(h,'xdata',sin(t(i)),'

7-13.m

[x,y,z] =peaks; subplot(1,2,1) meshc(x,y,z); %同时画出网格图与轮廓线 title('meshc 网格图与轮廓线') axis([-inf inf -inf inf -inf inf]); subplot(1,2,2) surfc(x,y,z);

7-3.m

Z = peaks; surf(Z) %绘制网格表面图 axis tight set(gca,'nextplot','replacechildren'); %设定axis覆盖重画模式 title '帧动画播放示例' for j = 1:20 surf(sin(2*pi

7-5.m

rand('state',5); x = rand(1,10); y = rand(1,10); subplot(131) voronoi(x,y); %绘制voronoi图形 subplot(132) [vx, vy] = voronoi(x,y); plot(x,y,'r+',vx,vy,'b-'); axis

7-21.m

subplot(131) sphere(16) axis square shading flat title('Flat Shading') subplot(132) sphere(16) axis square shading faceted title('Faceted Shading') subplot(133) sphere(16) axis square sha

7-11.m

[xsp,ysp,zsp] = sphere; %定义球体 slice(x,y,z,v,[-2,2],2,-2) % 绘制切片边 for i = -3:.2:3 hsp = surface(xsp+i,ysp,zsp); %球体面句柄 rotate

7-12.m

[x y z v] = flow; %打开水流数据 h = contourslice(x,y,z,v,[1:9],[],[0],linspace(-8,2,10)); %切片轮廓线 view([-12 30]) %设置视

7-8.m

[x,y] = meshgrid(-3:.5:3,-3:.1:3); z = peaks(x,y); ribbon(y,z)