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 …

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by