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 ?!
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 !?
Cheers
Greg Locock
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.