Find the volume of the region bounded between the planes x + y + 2z = 4 and 2x + 2y + z = 2 in the first octant.

2 ビュー (過去 30 日間)
Sahith Krishna
Sahith Krishna 2021 年 12 月 24 日
回答済み: Walter Roberson 2021 年 12 月 27 日
I DON'T KNOW WETHER MY LIMITS OF X AND Y ARE CORRECT OR NOT PLEASE ONCE GO THROGH IT AND HELP ME
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 12 月 24 日
On this site, questions are answered by volunteers. You can, of course try to issue commands to volunteers that they must do a certain calculation or write a certain program, but it is unlikely that anyone will bother to comply.

サインインしてコメントする。

回答 (2 件)

Matt J
Matt J 2021 年 12 月 24 日
編集済み: Matt J 2021 年 12 月 24 日
One way would be to download these files,
and use them to obtain the vertices of the region, whereupon convhulln can be used to compute the volume.
A=[-eye(3); 1 1 2; -[2 2 1]];
b=[0;0;0;4; -2];
vertices=lcon2vert(A,b)
vertices = 5×3
0 0 2.0000 0 1.0000 0 0 4.0000 0 1.0000 0 0 4.0000 0 0
[~,volume]=convhulln(vertices)
volume = 5

Walter Roberson
Walter Roberson 2021 年 12 月 27 日
In order to use viewSolid() with symbolic values, your fifth parameter (that you called ya in your code) must be symbolic. So you should
ya = 0 + 0*x;

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by