필터 지우기
필터 지우기

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

댓글을 달려면 로그인하십시오.

추가 답변 (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 CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by