필터 지우기
필터 지우기

IRF: too many inputs arguments?!!!!

조회 수: 4 (최근 30일)
Houda
Houda 2017년 9월 5일
댓글: Walter Roberson 2017년 9월 6일
Hey every body,
Please I am runing the code for fig03 but it show the following error:
Error using irf
Too many input arguments.
Error in fig03 (line 160)
Yo0 = irf(1, nir+1, Do, zeros(7, ns), Go, Ho);
I said that because it is irf2 needed and not irf as mentioned in the comments of the code but another kind of error raises:
Error using zeros
Size inputs must be scalar.
Error in irf2 (line 31)
K = zeros(NK, NIR);
Error in fig03 (line 160)
Yo0 = irf2(1, nir+1, Do, zeros(7, ns), Go, Ho);
any help from the matlab community is more than welcome
Houda

답변 (1개)

KSSV
KSSV 2017년 9월 5일
This line:
Yo0 = irf2(1, nir+1, Do, zeros(7, ns), Go, Ho) ;
YOu cannot input variables like that.
Use:
N = 1 ;
ZZ = zeros(7,ns) ;
Yo0 = irf2(N, nir+1, Do, zZ, Go, Ho)
But this will arise different errors now in irf2...:)
  댓글 수: 7
Houda
Houda 2017년 9월 6일
편집: Houda 2017년 9월 6일
Good morning, Dear @Walter Robenson I didn't understand your question, but I attached the whole zipped file with data and codes above. thanks
Walter Roberson
Walter Roberson 2017년 9월 6일
fig03 is a function that needs to be passed parameters. What parameters are you passing to it?

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by