Plotting an inequality of two related variable in a linear space

3 ビュー (過去 30 日間)
Sabrina Garland
Sabrina Garland 2022 年 3 月 27 日
コメント済み: Sabrina Garland 2022 年 3 月 27 日
I want to plot the inequality with two variables a and b such that a>b. Variables a and b have values between 0 and 1. Inequality I want to plot is - 8*a^6+3*(a^3)(b^2)+sqrt(2*(a^5)(b)+7*(a^2)(b^4))>=a^3/b^2. I want the shaded region where inequality is satisfied. How can I plot this in matlab? I am new to graphing and any sort of help will be really appreciated.

採用された回答

Torsten
Torsten 2022 年 3 月 27 日
Try
f = @(a,b)a^3/b^2-(- 8*a^6+3*(a^3)(b^2)+sqrt(2*(a^5)(b)+7*(a^2)(b^4)));
fimplicit(f,[0 1 0 1])
I didn't use it until now, but maybe
is also an option.
  6 件のコメント
Torsten
Torsten 2022 年 3 月 27 日
編集済み: Torsten 2022 年 3 月 27 日
f = @(a,b)a.^3./b.^2-(- 8*a.^6+3*(a.^3).*(b.^2)+sqrt(2*(a.^5).*b+7*(a.^2).*(b.^4)));
I think you also forgot several multiplication signs in your function definition.
Sabrina Garland
Sabrina Garland 2022 年 3 月 27 日
I figured my mistake. It worked! Thanks a ton

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by