フィルターのクリア

Using abs in a polynomious

1 回表示 (過去 30 日間)
mar vouz
mar vouz 2016 年 1 月 10 日
編集済み: mar vouz 2016 年 4 月 26 日
uu

採用された回答

Walter Roberson
Walter Roberson 2016 年 1 月 10 日
You cannot pass a function handle to polyval.
"The input argument p is a vector of length n+1 whose elements are the coefficients in descending powers of the polynomial to be evaluated."
Notice that your ap already does a polyval, so even if you invoked ap somehow it would be a mistake to use it in polyval afterwards.
You should just be using
y2 = abs(polyval(x2,p));
trapz(x2, y2)

その他の回答 (0 件)

カテゴリ

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