clc,clear,close all
[r,theta] = meshgrid([2:0.1:15],[-2*pi:0.05*pi:2*pi]);
x = r.*cos(theta);
y = r.*sin(theta);
z = r.^2 ;
surf(x,y,z)
图片如下:
clc,clear,close all
[r,theta] = meshgrid([2:0.1:15],[-2*pi:0.05*pi:2*pi]);
x = r.*cos(theta);
y = r.*sin(theta);
z = r.^2 ;
surf(x,y,z)
图片如下: