Polyval gives me a error

2 ビュー (過去 30 日間)
Janani Chander
Janani Chander 2013 年 6 月 26 日
Hi,
Can you please tell me what is this error. I am using Matlab R2013 a. I have
g= fit(z',y,'poly1');
t1 = polyval(g,0.001).
when I run this code in matlab, I get this error
|_**Undefined function 'filter' for input arguments of type 'cfit'.
Error in polyval (line 57) y = filter(1,[1 -x],p);
Error in finite_size_scaling_cchargegap (line 50) t1 = polyval(g,0.001)**_|

採用された回答

Andrei Bobrov
Andrei Bobrov 2013 年 6 月 26 日
t1 = feval(g,0.001)
  1 件のコメント
Janani Chander
Janani Chander 2013 年 6 月 26 日
Thanks , this works.

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

その他の回答 (1 件)

David Sanchez
David Sanchez 2013 年 6 月 26 日
Try this out:
g= fit(z',y,'poly1');
P=[g.p1 g.p2];
t1 = polyval(P,0.001)

カテゴリ

Help Center および File ExchangeTransfer Function Models についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by