《精通matlab7》“mastering matlab 7”的代码。

源代码在线查看: mm2702.m

软件大小: 99 K
上传用户: RSY527
关键词: mastering matlab7 matlab 代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				% mm2702.m				x = linspace(0,3*pi);  % x-axis data				z1 = sin(x);           % plot in x-z plane				z2 = sin(2*x);				z3 = sin(3*x);				y1 = zeros(size(x));   % spread out along y-axes				y3 = ones(size(x));    % by giving each curve different y-axis values				y2 = y3/2;								plot3(x,y1,z1,x,y2,z2,x,y3,z3)				grid on				xlabel('X-axis'), ylabel('Y-axis'), zlabel('Z-axis')				title('Figure 27.2: sin(x), sin(2x), sin(3x)')
												% plot3(x,z1,y1,x,z2,y2,x,z3,y3)				% grid on				% xlabel('X-axis'), ylabel('Y-axis'), zlabel('Z-axis')				% title('Figure 27.3: sin(x), sin(2x), sin(3x)')			

相关资源