Matlab Gurus, I Need Help

Status
Not open for further replies.

tboo

Diamond Member
Jun 25, 2000
7,626
1
81
I need to do a contour plot of the equation (360/Pi)*phi. I converted it to Cartesian coordinates: (360/pi)*atan(y/x) and tried to do a contour plot with these commands:

>> [x y]=meshgrid(linspace(1,100,15));
>> v=(360/3.14)*atan(y/x);
Warning: Matrix is singular to working precision.
>> contour(x,y,v);
Warning: Contour not rendered for non-finite ZData
> In contour>parseargs at 202
In contour at 72

but as you see Im getting the above errors. I was able to get the plot to work fine in Mathcad but am having problems with Matlab.

Any help is appreciated.
 
Status
Not open for further replies.