plot a conditional equation

3 次查看(过去 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?

采纳的回答

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