How to fucntions like plot f(x,y) = 2 when 0<=x<=1 and 0<=y<=x

1 回表示 (過去 30 日間)
WR102ka
WR102ka 2018 年 3 月 27 日
コメント済み: WR102ka 2018 年 3 月 27 日
I'm struggling to do so. Any help will be appriciated.
  1 件のコメント
Adam
Adam 2018 年 3 月 27 日
f(x,y) = 2 is just a single point result isn't it? Irrespective of x and y the answer is 2

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

採用された回答

Christopher Creutzig
Christopher Creutzig 2018 年 3 月 27 日
If the region to plot over were a simple 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1, you could use fimplicit(f(x,y) - 2, [0 1 0 1]). I don't think there is a good way of restricting the plotting domain to the triangle you are looking for, though. You could just cover the upper triangle with a fill([0 1 1], [1 0 1], [1 1 1]) call, I guess …
  1 件のコメント
WR102ka
WR102ka 2018 年 3 月 27 日
I guess this is as close as we can get. Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by