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
2018 年 12 月 13 日
編集済み: madhan ravi
2018 年 12 月 13 日
comment moved to answer section
walid mohammed
2018 年 12 月 13 日
採用された回答
その他の回答 (1 件)
madhan ravi
2018 年 12 月 13 日
0 投票
remove ~ ,~ ,~ ,~ ,~ ,
2 件のコメント
Walter Roberson
2018 年 12 月 13 日
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)]
madhan ravi
2018 年 12 月 13 日
yes sir Walter completely agree
カテゴリ
ヘルプ センター および File Exchange で Data Type Identification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!