plot a conditional equation
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
2NOR_Kh
le 12 Fév 2022
Réponse apportée : Walter Roberson
le 12 Fév 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 commentaires
Réponse acceptée
Walter Roberson
le 12 Fév 2022
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
fsurf(f, [0 1000 0 1000])
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
