MATLAB Lecture 8 School of Mathematical Sciences Xiamen University tp: /gdjpkc. xmu. edu.cn Plot x+y=2, over x,yE[-2, 2 > ezplot(x.*4+y4-2~43,[-44]) 口佥日舀日回长日 v Plot 3 Function Plot lines and points in 3-D space plot(x,y, z), where x, y and z are three vectors of the same length, plots a line in 3-space through the points whose coordinates are the elements of x, y and z plot(X,Y, Z), where X, Y and Z are three matrices of the same size, plots several lines obtained from the columns of x.y and Z Various line types, plot symbols and colors may be obtained with plot(X,Y, Z, s) where s is a 1, 2 or 3 character string made from the characters listed under the plot command >t=0pi/50:10*pi; plot(sin(t), cos(t), t); Figure I Eile Edit yie Insert Ioos Desktop window Belp Lec8-6MATLAB Lecture 8 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu.cn Lec86 Plot 4 4 4 x + y = 2 , over x, y Œ[-2, 2]. >> ezplot(‘x.*4+ y.^42^4’, [4,4]) ¸ Plot3 Function Plot lines and points in 3D space. plot3(x,y,z), where x, y and z are three vectors of the same length, plots a line in 3space through the points whose coordinates are the elements of x, y and z. plot3 (X,Y,Z), where X, Y and Z are three matrices of the same size, plots several lines obtained from the columns of X, Y and Z. Various line types, plot symbols and colors may be obtained with plot3 (X,Y,Z,s) where s is a 1, 2 or 3 character string made from the characters listed under the plot3 command. >> t = 0:pi/50:10*pi; >> plot3(sin(t),cos(t),t);