plot a conditional equation
조회 수: 21 (최근 30일)
이전 댓글 표시
I want to plot f(x,y)= (x-y)/(x+y) with this condition that x,y> 0 and y>10x, how can I plot it in matlab?
댓글 수: 0
채택된 답변
Walter Roberson
2022년 2월 12일
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
fsurf(f, [0 1000 0 1000])
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
