Thread Closed

MATLAB Help needed!

 
Share Thread
Sep1-10, 08:41 PM   #1
 

MATLAB Help needed!


I need help finding the volume underneath this surf plot. Or contour plot. We have a project including a sandbox with different heights of sand at different points. So create the plot I have used

x = [50:50:950];
y = [50:50:950];
z = 'values from an xls spreadsheet. Containing every height value with 50mm spacing from 50 mm to 950 mm in both x and y directions'.

[c,h] = contourm(x,y,z)
ht=clabel(c,h);



That's all I've done so far, I need to find the volume of sand in our sand box, and I know the width and length of it and also the height at those different locations.

Please help, I'm completely lost!
PhysOrg.com science news on PhysOrg.com

>> Leading 3-D printer firms to merge in $403M deal (Update)
>> LA to give every student an iPad; $30M order
>> CIA faulted for choosing Amazon over IBM on cloud contract
Sep1-10, 11:19 PM   #2
 
Recognitions:
Science Advisor Science Advisor
You should "integrate" the values just as you would in calculus. Since you have discrete values in your spreadsheet, sum them together and multiply by the grid cell area, according to the rectangle method of calculus. (You can be fancy and use the trapezoidal rule or Simpson's rule, but you probably don't need the extra accuracy.) You can do this in Excel.
Thread Closed

Tags
contour, matlab, plot, three dimensional, volume

Similar discussions for: MATLAB Help needed!
Thread Forum Replies
Matlab code needed Engineering, Comp Sci, & Technology Homework 3
Matlab Help Needed Meshgrid Engineering, Comp Sci, & Technology Homework 5
hello PDE - Matlab Code - help needed Differential Equations 2
[Solved] A little matlab help needed Introductory Physics Homework 1
matlab:Chapra , Help needed. Math & Science Software 1