plot a conditional equation
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2022 年 2 月 12 日
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
fsurf(f, [0 1000 0 1000])
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
