You are on page 1of 1

close all

theta = linspace(0,2*pi); z = linspace(-5,5);


[TH,Z] = meshgrid(theta,z);
R = 1./(1+exp(2-Z))+2;
[x,y,z] = pol2cart(TH,R,Z);
mesh(x,y,z);
colormap(copper)
axis equal

You might also like