How can I plot 3D TENT with MATLAB?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a homework with 5 question. This is the only question that I could not handle. I don't know how to do it in Matlab. (b)& (c) parts can be done in MATLAB also? Can you help me with the codes?
Question is:
A tent that covers the area Rxy : −10 ≤ x, y ≤ 10 is described as
S : z = f(x, y) = 18 − 0.09x^2 − 0.06y^2 , (x, y) ∈ Rxy
(a) Obtain a 3D plot of the tent using MATLAB.
(b) Express the volume under the tent as an integral over Rxy and evaluate it.
(c) Express the surface area of the tent as an integral over Rxy, and find it approximately by subdividing Rxy into small squares of size 0.1 × 0.1.
0 件のコメント
回答 (1 件)
Matt Kindig
2013 年 4 月 25 日
For part (a), I would look up the documentation for the following two commands:
linspace %to create your x and y domain vectors
meshgrid %to convert x and y to a grid that you can then use to calculate z
surf %to actually make the plot
The examples for the 'meshgrid' command should be especially useful.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!