MATLAB: Graphing in Cylindrical Coordinates using MATLAB

cylindrical coordinatesgraphing

Hello,
I want to reproduce this graph… http://i45.tinypic.com/121xra1.jpg … using MATLAB.
It's the graph of g(r, theta) = 1 + r^2*sin(theta) over the unit circle.
Does anyone have any advice?
Thanks 🙂

Best Answer

Advice is to make a start and show us what you have done so far.
Here is my primer:
r = 0:0.1:1;
theta = linspace(0, 2*pi, 12);
You need to use meshgrid
doc meshgrid
And surf
doc surf
And a polar co-ordinate conversion
<insert high-school trigonometry>
The colour map is jet.
I think that's plenty to get you started =)