plot a conditional equation

2 Ansichten (letzte 30 Tage)
2NOR_Kh
2NOR_Kh am 12 Feb. 2022
Beantwortet: Walter Roberson am 12 Feb. 2022
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Feb. 2022
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
f(x, y) = 
fsurf(f, [0 1000 0 1000])

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by