How can I plot 3D TENT with MATLAB?

2 次查看(过去 30 天)
Volkan
Volkan 2013-4-25
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.

回答(1 个)

Matt Kindig
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.

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by