MATLAB Lecture 9 School of mather cmaticalSciencesXiamenUniversityhttp://gdjpkc.xmu.edu.cn Surface of rotation >z=0:20 日母4俄回←日日日口 >R=(60*z)(1/2) >>X,YZ=cylinder(R, 40) > mesh(X,Y,z) Surface of Sphere FIgure I IX,YZ=sph B日:口 mesh(XY Z Appendix RGB Color Components This table lists some representative RGB color definitions Green Blue 0 Black White 0 0 Red blue 0 0 5 0.5 Dark red 0.62 0.40 0.49 0.83 Aquamarine Lec9-8MATLAB Lecture 9 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu.cn Lec98 ¸ Surface of Rotation >> z=0:20; >> R=(60*z).^(1/2); >> [X,Y,Z]=cylinder(R,40); >> mesh(X,Y,Z) ¸ Surface of Sphere >> [X,Y,Z]=sphere; >> mesh(X,Y,Z) ² Appendix RGB Color Components This table lists some representative RGB color definitions. Red Green Blue Color 0 0 0 Black 1 1 1 White 1 0 0 Red 0 1 0 Green 0 0 1 Blue 1 1 0 Yellow 1 0 1 Magenta 0 1 1 Cyan 0.5 0.5 0.5 Gray 0.5 0 0 Dark red 1 0.62 0.40 Copper 0.49 1 0.83 Aquamarine