How to plot a line graph with algebraic function
古いコメントを表示
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 件のコメント
Geoff Hayes
2015 年 12 月 30 日
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
2016 年 1 月 1 日
採用された回答
その他の回答 (1 件)
dpb
2015 年 12 月 30 日
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 件のコメント
Mukri Ramli
2016 年 1 月 1 日
編集済み: Walter Roberson
2016 年 1 月 1 日
カテゴリ
ヘルプ センター および File Exchange で Modulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!