Plot graph of polynomials
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Yash Raj Sitaram Prasad
il 9 Set 2021
Risposto: Yash Raj Sitaram Prasad
il 10 Set 2021
I want to plot graph of polynomial function such as |x| and many more like this.
0 Commenti
Risposta accettata
John D'Errico
il 9 Set 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 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Discrete Data Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!