Implicit Function Plot

2D

xm = -1.5:0.1:1.5;
ym = -1.5:0.1:1.5;
[x,y] = meshgrid(xm,ym);
f = x.^2 + y.^2 - 1;
contour(x,y,f,[0,0]);

3D

xm = -1.5:0.1:1.5;
ym = -1.5:0.1:1.5;
zm = -1.5:0.1:1.5;
[x,y,z] = meshgrid(xm,ym,zm);
f = x.^2 + y.^2 + z.^2 - 1;
isosurface(x,y,z,f,0);

2 Responses to “Implicit Function Plot”


  1. 1 Abdul November 15, 2008 at 3:03 pm

    I would like to plot implicit function but i have a problem, I would like your assistance
    Could I send my file and help me
    Best Regrds

  2. 2 Jie November 15, 2008 at 11:45 pm

    Sure. You can post the question here or send me by email, whatever convenient. My email is roach21cn at hotmail dot com.


Leave a Reply




Categories

Blog Stats

  • 40,485 hits