plot a conditional equation

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?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Feb. de 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])

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Preguntada:

el 12 de Feb. de 2022

Respondida:

el 12 de Feb. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by