Plot graph of polynomials
11 次查看(过去 30 天)
显示 更早的评论
I want to plot graph of polynomial function such as
|x| and many more like this.
|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 中查找有关 Spline Postprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
