plot a conditional equation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
2NOR_Kh
el 12 de Feb. de 2022
Respondida: Walter Roberson
el 12 de Feb. de 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?
0 comentarios
Respuesta aceptada
Walter Roberson
el 12 de Feb. de 2022
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
fsurf(f, [0 1000 0 1000])
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!