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 CenterFile Exchange에서 Transfer Function Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by