How to plot a line graph with algebraic function
Mostrar comentarios más antiguos
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 comentarios
Geoff Hayes
el 30 de Dic. de 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
el 1 de En. de 2016
Respuesta aceptada
Más respuestas (1)
dpb
el 30 de Dic. de 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 comentario
Mukri Ramli
el 1 de En. de 2016
Editada: Walter Roberson
el 1 de En. de 2016
Categorías
Más información sobre Modulation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!