plot a conditional equation

4 ビュー (過去 30 日間)
2NOR_Kh
2NOR_Kh 2022 年 2 月 12 日
回答済み: Walter Roberson 2022 年 2 月 12 日
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?

採用された回答

Walter Roberson
Walter Roberson 2022 年 2 月 12 日
syms x y
f(x,y) = piecewise(y > 10*x, (x-y)/(x+y), nan)
f(x, y) = 
fsurf(f, [0 1000 0 1000])

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by