Level set in Matlab
4 views (last 30 days)
Show older comments
Hello everyone
I need to find the function f within x^2+y^2<=100 and the tangential plane at point (4,2,f(4,2)), for 2<=x<=6, 0<=y<=4.
the commend sounds like this:
figure(2); mesh(x,y,z);
axis([-10 10 -10 10 -10 10]); hold on;
[xt,yt]=meshgrid(2:0.2:6,0:0.2:4);
zt=6-1.4*(xt-4)-0.2*(yt-2);
surf(xt,yt,zt,ones(size(xt))*200);
view(42.5,42); xlabel('x'); ylabel('y'); zlabel('z');
what I don't understand is where "zt=6-1.4*(xt-4)-0.2*(yt-2)" comes from...would be thankful for any hint
Edit: thank you for mentioning. done.
1 Comment
Jan
on 9 May 2012
Please format the code as explained in the "Markup help" link.
@TMW: Please make the formatting of code more obvious in the input dialog of this forum.
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!