フィルターのクリア

I have an polynomial f(x) = 4x^5 + 5x^4 + 2x^3 +2x^2 +3x. And x ranges from {0 to 63}. How do I code this so I can display answer corresponding to every value of x.?

4 ビュー (過去 30 日間)
Could you help me?

採用された回答

Torsten
Torsten 2016 年 3 月 22 日
p=[4 5 2 2 3 0];
x0=1;
polyval(p,x0);
evaluates your polynomial at x0=1.
Best wishes
Torsten.
  6 件のコメント
Neha W
Neha W 2016 年 3 月 22 日
Thank you for your help.
Guillaume
Guillaume 2016 年 3 月 22 日
Well,
x0 = 0:63;
would be simpler than linspace

サインインしてコメントする。

その他の回答 (1 件)

Fazleh Rabbi
Fazleh Rabbi 2021 年 8 月 20 日
(a) Write down MATLAB command for each of the following polynomials.
(i) 2x
2
- 5x
4+ 8x (ii) 2x
5 + sin 40

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by