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);

Advertisements

4 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.

  3. 3 kiki September 28, 2010 at 10:38 pm

    I have trouble drawing an implicit function from a journal …
    I hope you can help me to plot …
    thank you for your help ^^

  4. 4 metodos May 12, 2011 at 11:08 pm

    Excelent!!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Categories

Blog Stats

  • 246,614 hits

%d bloggers like this: