×
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

How to draw a mesh !?

How to draw a mesh !?

How to draw a mesh !?

(OP)
Hi,

I have the folliwng code in Matlab and I get the diagram below:

http://www.students.yorku.ca/~kasha7/index.htm

However, I need both x^2 + y^2 = 1 and z = x^2 be drawn in a mesh and the observer would tell them apart and would visualize the intersection as the picture above.

I hope you understand what I mean.

p = -3:0.1:3
x = sin(p);
y = cos(p);
z = x.^2;
plot3(x,y,z);
grid on;


Do you know how this code should be modified to give me what I need ?!

RE: How to draw a mesh !?

Have a look at contour, and the associated mesh commands, in the help. I haven't got to grips with them myself, yet.

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

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