MATLAB: Can I create 3-D polar plots in MATLAB

3-d3dMATLABplotpolar

I would like to create 3-D polar plots in MATLAB.

Best Answer

There is no single command that will produce a 3-D polar plot in MATLAB.
As a workaround, you can use the SURF command in combination with the POL2CART command to create a three-dimensional polar plot. For example:
[th,r] = meshgrid((0:5:360)*pi/180,0:.05:1);
[x,y] = pol2cart(th,r);
z=x+i*y;
f=(z.^4-1).^(1/4); %Use your function here
surf(x,y,abs(f))
For an example of code that can be used to create radial lines and ticks, you can examine the code in the POLAR function, in $MATLAB\toolbox\matlab\graph2d\polar.m.