Level set in Matlab
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Jan
2012 年 5 月 9 日
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.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!