loop / pre-allocation / simulation problem
1 view (last 30 days)
Show older comments
Hi everbody, I try to make an simulation for FIGARCH model. Unfortunately, when I run the following code, it gives an error message:Subscripted assignment dimension mismatch
for i =1:1000
x = figarch_simulate (2500, [0.30 0.28 0.32 0.57],1,1);
mat(i,:)= x
end
??? Subscripted assignment dimension mismatch
here x is a time series. if I run the same code for different function, instead of figarch_simulate, everything is ok then. Could you help me on this issue ?
0 Comments
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!