surf(X,Y,Z) surf mesh surf Both the function and its companion display surfaces in three dimensions. displays both the connecting lines and the faces mesh of the surface in color. produces wireframe surfaces that color only the lines connecting the defining points. Subplots subplot You can display multiple plots in different subregions of the same window using the function. For example, create four plots in a 2-by-2 grid within a figure window. t = 0:pi/10:2*pi; [X,Y,Z] = cylinder(4*cos(t)); subplot(2,2,1); mesh(X); title('X'); subplot(2,2,2); mesh(Y); title('Y'); subplot(2,2,3); mesh(Z); title('Z'); subplot(2,2,4); mesh(X,Y,Z); title('X,Y,Z'); subplot The first two inputs to the function indicate the number of plots in each row and column. The third input specifies which plot is active. Resources http://www.nt.tuwien.ac.at/fileadmin/courses/389068/MATLAB_introduction.pdf
surf(X,Y,Z) Both the surf function and its companion mesh display surfaces in three dimensions. surf displays both the connecting lines and the faces of the surface in color. mesh produces wireframe surfaces that color only the lines connecting the defining points. Subplots You can display multiple plots in different subregions of the same window using the subplot function. For example, create four plots in a 2-by-2 grid within a figure window. t = 0:pi/10:2*pi; [X,Y,Z] = cylinder(4*cos(t)); subplot(2,2,1); mesh(X); title('X'); subplot(2,2,2); mesh(Y); title('Y'); subplot(2,2,3); mesh(Z); title('Z'); subplot(2,2,4); mesh(X,Y,Z); title('X,Y,Z'); The first two inputs to the subplot function indicate the number of plots in each row and column. The third input specifies which plot is active. Resources http://www.nt.tuwien.ac.at/fileadmin/courses/389068/MATLAB_introduction.pdf