×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

plot x=y=z

plot x=y=z

plot x=y=z

(OP)
I am a beginner in Matlab and I'm trying to plot 3 planes, defined by x=y=z using ezsurf.
z=x and z=y are easy, but I cannot find a way to plot the 3th plane x=y.

Thanking in advance...  


%x=y=z

func1=@(x,y)x;
func2=@(x,y)y;
%??func3=@(x,z)y;

ezsurf(func1, [-1 1 -1 1]);
hold on
ezsurf(func2, [-1 1 -1 1]);
%??ezsurf(func3, [-1 1 -1 1]);
 

RE: plot x=y=z

(OP)
x=y=z is a point defined by the intersection of three planes: z=x (func1), z=y  (func2)and x=y. The question is how to plot the plane x=y in a three dimensional system.  

RE: plot x=y=z

It doesn't answer your question, but Greg is right. x=y=z is not a plane nor is it a point. As you correctly stated in your OP, it is the union of 3 planes, x=y, y=z and x=z.

Anyway, enough pedantic point scoring.

ezsurf(fun) plots z=fun(x,y), so you can't use it to plot an implicit function of z. To plot implicitly, use the parametric form. The parametric form of x=y is {x=s; y=s; z=t}.

>> x = @(s,t) s;
>> y = @(s,t) s;
>> z = @(s,t) t;
>> ezsurf(x, y, z)

I've never used ezsurf before, so I had to google it. Seems to give you what you want when I try it.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources