Level set in Matlab

4 vues (au cours des 30 derniers jours)
Lorance
Lorance le 9 Mai 2012
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 commentaire
Jan
Jan le 9 Mai 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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by