Available under Creative Commons-ShareAlike 4.0 International License.
Evaluate f(x) at 5.
The row vector representing f(x) above is p=[3 2 1]. To evaluate f(x) at 5, we type in: polyval(p,5). The following shows the Command Window output:
» p=[3 2 1]
p =
3 2 1
» polyval(p,5)
ans =
86
»
- 瀏覽次數:2273




