Plot graph of polynomials
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Yash Raj Sitaram Prasad
le 9 Sep 2021
Réponse apportée : Yash Raj Sitaram Prasad
le 10 Sep 2021
I want to plot graph of polynomial function such as |x| and many more like this.
0 commentaires
Réponse acceptée
John D'Errico
le 9 Sep 2021
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 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Discrete Data Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!