Index exceeds matrix dimensions,怎么解决?
有一系列程序,总是出现这样的问题,比如garchestfor_con_all.m.
>??? Index exceeds matrix dimensions.
我询问该程序的作者,作者回复如下:
you should change the initial size of "Parameters" in such a
way that it can store vectors with different lengths
otherwise you will get another error. Try to initialize
Parameters with the maximum number of parameters (largest
model, i.e. Parameters=zeros(12,5);)
请问这是什么意思,我应该在哪改变初值?谢谢
其中一个程序在附件里(比较长,不好意思)
[ 本帖最后由 ChaChing 于 2009-4-29 07:55 编辑 ] 引用矩阵时超过矩阵本身的长度,例如:
>> a=
a =
1 2
1 3
>> a(1:3,:)
??? Index exceeds matrix dimensions.
页:
[1]