How can I plot 3D TENT with MATLAB?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Matt Kindig
am 25 Apr. 2013
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 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!