I am trying to plot a 3d cone (upside down) using the implicit equatin x^2+y^2=z^2, but having trouble finding out how to plot implicit functions with matlab, any suggestions would be appreciated.
thanks, Jeff
|
|
0
|
|
|
|
Reply
|
Jeff
|
5/16/2010 3:06:05 AM |
|
"Jeff Westmoreland" <jeffswestmoreland@gmail.com> wrote in message <hsnnet$9s4$1@fred.mathworks.com>...
> I am trying to plot a 3d cone (upside down) using the implicit equatin x^2+y^2=z^2, but having trouble finding out how to plot implicit functions with matlab, any suggestions would be appreciated.
>
> thanks, Jeff
one of the many solutions
[x,y]=meshgrid(-10:.5:10);
z=sqrt(x.^2+y.^2);
surfl(x,y,z);
% also, look at EZSURF
us
|
|
0
|
|
|
|
Reply
|
us
|
5/16/2010 8:27:03 AM
|
|