How to plot a line graph with algebraic function
Mostra commenti meno recenti
i have this equation y = -3.546x^4 + 40.652x^3 - 172.24x^2 + 320.58x - 221.62 i dont know how to plot it all i can get is like a wave graph. i cant get it to be curved graph. please help me
2 Commenti
Geoff Hayes
il 30 Dic 2015
Mukri - please clarify what you mean by I can't get it to be a curved graph. What values of x are you using? What is the code that you have written to plot the curve? Please attach an image of what you are observing (the wave) and what you wish to see (the curve).
Mukri Ramli
il 1 Gen 2016
Risposta accettata
Più risposte (1)
dpb
il 30 Dic 2015
Try
ezplot('-3.546*x^4 + 40.652*x^3 - 172.24*x^2 + 320.58*x - 221.62') % let if default
ezplot('-3.546*x^4 + 40.652*x^3 - 172.24*x^2 + 320.58*x - 221.62',[-100 100]) % force wide range
and see if can't then tell over what range of independent variable you're interested.
1 Commento
Mukri Ramli
il 1 Gen 2016
Modificato: Walter Roberson
il 1 Gen 2016
Categorie
Scopri di più su Modulation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!