The question is "Find the volume of the solid bounded by the coordinate planes x=0, y=0, z=0 and the plane x+2y+3z=1". Please check my code if the volume value is correct.
Show older comments
syms x y z
f= (1-x-2*y)/3
int(int(int(1,z,0,f),y,0,-x/2),x,0,1)
Answers (2)
Walter Roberson
on 3 Jan 2022
0 votes
The function name is viewSolid with a capital S, and it is not part of MATLAB; you need to get it from somewhere such as
Image Analyst
on 3 Jan 2022
0 votes
I gave some hints here.
You have a negative volume, which isn't right..
I'm getting
volume =
0.027787
1 Comment
Abinesh R
on 4 Jan 2022
Oh i got the same answer. I used this code and got 1/36 as the answer.
clc
clear all
syms x y z
int(int((1/3)*(1-x-2*y),y,0,(1-x)/2),x,0,1)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!