Expression or statement is incorrect--possibly unbalanced (, {, or [.

i get the following error when calling the multipleGarchPrediction [~ ,~ ,~ ,~ ,~ , LR_POF ((j -1) * length ( filenames )+i ,:) ,Z((j -1)*
length ( filenames )+i ,:) ,gamma ((j -1)* length ( filenames )+(i -1) *3+1:(j -1)* length ( filenames )+(i -1) *3+1+2 ,:) ,alpha ((j -1)* length (
filenames )+(i -1) *3+1:(j -1)* length ( filenames )+(i -1) *3+1+2 ,:) ,beta ((j -1)* length ( filenames )+(i -1) *3+1:(j -1)* length ( filenames )+(i -1)
*3+1+2 ,:) ,delta ((j -1) * length ( filenames )+(i -1) *3+1:(j -1)* length (filenames )+(i -1) *3+1+2 ,:) ] = garchPrediction ( cell2mat ( filenames (
i)),startDate , endDate ,N,T,dist , garchmodel ,q,lambda ,l);
Expression or statement is incorrect--possibly unbalanced (, {, or [.

댓글 수: 2

madhan ravi
madhan ravi 2018년 12월 13일
편집: madhan ravi 2018년 12월 13일
comment moved to answer section
thanks...it works

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

 채택된 답변

Walter Roberson
Walter Roberson 2018년 12월 13일
In any list building context,
FUNCTIONNAME (ARGUMENT)
will be interpreted as
FUNCTIONNAME() (ARGUMENT)
Repaired file included.

추가 답변 (1개)

madhan ravi
madhan ravi 2018년 12월 13일

0 개 추천

remove ~ ,~ ,~ ,~ ,~ ,

댓글 수: 2

No, that wil not work. The code is a function call with a list of indexed output variables. Removing the ~ would put the other variables in the wrong location. It would also not solve the underlying issue which has to do with the difference between
[A, B (D)]
compared to
[A, B(D)]
with the first one being the same as
[A, B(), (D)]
yes sir Walter completely agree

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

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

질문:

2018년 12월 13일

댓글:

2018년 12월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by