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
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/390922-how-to-fucntions-like-plot-f-x-y-2-when-0-x-1-and-0-y-x#comment_550095
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/390922-how-to-fucntions-like-plot-f-x-y-2-when-0-x-1-and-0-y-x#comment_550095
댓글을 달려면 로그인하십시오.