声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2836|回复: 1

[综合讨论] Index exceeds matrix dimensions,怎么解决?

[复制链接]
发表于 2009-4-28 19:47 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
有一系列程序,总是出现这样的问题,比如
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 编辑 ]

程序1.doc

63.5 KB, 下载次数: 3

程序

回复
分享到:

使用道具 举报

发表于 2009-4-29 10:43 | 显示全部楼层
引用矩阵时超过矩阵本身的长度,例如:
>> a=[1,2;1,3]

a =

     1     2
     1     3

>> a(1:3,:)
??? Index exceeds matrix dimensions.

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-20 02:00 , Processed in 0.062891 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表