plot a conditional equation

조회 수: 21 (최근 30일)
2NOR_Kh
2NOR_Kh 2022년 2월 12일
답변: Walter Roberson 2022년 2월 12일
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?

채택된 답변

Walter Roberson
Walter Roberson 2022년 2월 12일
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
f(x, y) = 
fsurf(f, [0 1000 0 1000])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by