The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: intersection of a surface with a plane
Replies: 4   Last Post: Jan 17, 2013 8:19 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 12
From: Tokyo
Registered: 1/4/13
Re: intersection of a surface with a plane
Posted: Jan 16, 2013 6:25 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thank you very much for your reply.

I tried plotting. I got the plots. But I don't how to spot the location(co-ordinates) of the intersection.

syms a b


hold on

My main aim was to find the roots of the equation. So, I plotted the equations, from which I can find the roots.

zdiff = lhs - rhs;
C = contours(lhs, rhs, zdiff, [0 0]);
% Extract the x- and y-locations from the contour matrix C.
aL = C(1, 2:end);
bL = C(2, 2:end);

% Interpolate on the first surface to find z-locations for the intersection
% line.
zL = interp2(a, b, lhs, aL, bL);

% Visualize the line.
line(aL, bL, zL, 'Color', 'k', 'LineWidth', 3);

Since, I could not able to spot the value of 'a' and 'b', i was unable to find the roots of the eqn or the intersection of the curves.
Problem with this : [a]=solve(lhs,a,b); was unable to find the explicit solution.

Thank you very much,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.