Level set in Matlab
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Jan
il 9 Mag 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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Audio and Video Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!