Key to MATLAB Exercise 9 School of Mathematical Sciences Xiamen University htt kc xmu edu. cn - Figure I Eile Edit Yiew Insert Tools Desktop lindow Help 日Q回果日国日 Display by plots function Display by mesh function Display by surf function 0 y-10-10 > clear: clf >>UF[0: 0.5: 4*pi]: v=[0: 0.5: 4 pi: [U, V=meshgrid(u, v) >>X=U'cos(V): Y=U*sin(V): Z=2*U+8*V > figure(1); plot(X, Y, Z); grid on > figure(2); mesh(X, Y, 2); grid on 母回日日日口Key to MATLAB Exercise 9 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu.cn Key to Ex93 3. >> clear; clf; >> u=[0:0.5:4*pi]; v=[0:0.5:4*pi]; [U,V]=meshgrid(u,v); >> X=U.*cos(V); Y=U.*sin(V); Z=2*U+8*V; 1) >> figure(1); plot3(X,Y,Z); grid on 2) >> figure(2); mesh(X,Y,Z); grid on