Plot graph of polynomials
2 ビュー (過去 30 日間)
古いコメントを表示
Yash Raj Sitaram Prasad
2021 年 9 月 9 日
回答済み: Yash Raj Sitaram Prasad
2021 年 9 月 10 日
I want to plot graph of polynomial function such as |x| and many more like this.
0 件のコメント
採用された回答
John D'Errico
2021 年 9 月 9 日
That is not a polynomial.
You have a sqrt root in there. And an absolute value. So learn how to use functions like abs, and sqrt. You will not learn unless you try.
help abs
help sqrt
First, you would you need to create such a function.
F = @(x) sqrt(abs(x));
Then to plot a function like that, you might read about fplot.
help fplot
So you might do this.
fplot(F)
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!