plot a conditional equation
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
2NOR_Kh
il 12 Feb 2022
Risposto: Walter Roberson
il 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?
0 Commenti
Risposta accettata
Walter Roberson
il 12 Feb 2022
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
fsurf(f, [0 1000 0 1000])
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!