声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1074|回复: 2

[编程技巧] 请教大家,MATLAB总是报错,调试了很多次都不行

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

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

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

x
Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
Error in ==> tc>xj2 at 98
x_name=[x1;x2;x3;x4;x5;x6;x7;x8;x9;x10;x11;x12;x13;x14;x15;x16;x17:x18];
Error in ==> funfun\private\odearguments at 110
f0 = feval(ode,t0,y0,args{:});   % ODE15I sets args{1} to yp0.
Error in ==> ode45 at 173
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, ...
Error in ==> tc at 4
[t,y]=ode45(@xj2,[0:0.001:20],[0.1,0.1,0.1,0.1,-0.1,-0.1,-0.1,-0.1,1,1,0.2,-0.6,1,-0.3,-0.5,0.6,2,-2]);


我明明已经设置了18个初始值,但不知道为什么还是错误!!

请教大家.
回复
分享到:

使用道具 举报

发表于 2009-4-18 17:59 | 显示全部楼层
: or ; ?
x_name=[x1;x2;x3;x4;x5;x6;x7;x8;x9;x10;x11;x12;x13;x14;x15;x16;x17:x18];

[ 本帖最后由 ChaChing 于 2009-4-18 18:01 编辑 ]

评分

1

查看全部评分

 楼主| 发表于 2009-4-19 21:05 | 显示全部楼层
恩,非常感谢,问题解决了.谢谢你,ChaChing!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-9-22 15:38 , Processed in 0.057609 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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