how to plot an inverse function?
12 ビュー (過去 30 日間)
古いコメントを表示
Hello , I have an inverse function
x = -y^2+10
but i don't know how to declare and plot it.
I tried to do
y = -x^2 +10
g = finverse(y)
ezplot ( x,g ,[-2,12])
and "imaginary parts of complex x and/or y arguments ignored error in matlab" error appears.
what function should i use for this problem ?
Thank you !!!
0 件のコメント
採用された回答
Alan Stevens
2020 年 12 月 22 日
How about
y = -10:10;
x = 10-y.^2;
plot(x,y),grid
xlabel('x'),ylabel('y')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!