声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1279|回复: 2

[编程技巧] Inner matrix dimensions must agree 出错求助

[复制链接]
发表于 2007-12-24 11:28 | 显示全部楼层 |阅读模式

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

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

x
clc;
fs=512;
N=1024;
t=0:1/fs:N/fs;
x1=cos(2*pi*60*t+sin(2*pi*15*t));
x2=(1+0.4*sin(2*pi*10*t))*sin(2*pi*200*t);
x=x1+x2;
plot(x,t);

??? Error using ==> mtimes
Inner matrix dimensions must agree.

Error in ==> myemdlizi2 at 6
x2=(1+0.4*sin(2*pi*10*t))*sin(2*pi*200*t);

[ 本帖最后由 eight 于 2007-12-24 11:30 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-12-24 11:30 | 显示全部楼层
原帖由 jingrenzhi 于 2007-12-24 11:28 发表
clc;
fs=512;
N=1024;
t=0:1/fs:N/fs;
x1=cos(2*pi*60*t+sin(2*pi*15*t));
x2=(1+0.4*sin(2*pi*10*t))*sin(2*pi*200*t);
x=x1+x2;
plot(x,t);

??? Error using ==> mtimes
Inner matrix dimensions  ...

注意点运算与矩阵运算的区别,请在置顶帖中找答案。注意:你已经不是新手了,希望养成发帖前,先自己动手的习惯,你这个问题实在讨论得太多了,而且置顶帖中有出错问题整理,也有for 新手的精华帖,自己好好阅读一下

[ 本帖最后由 eight 于 2007-12-24 11:31 编辑 ]

评分

1

查看全部评分

 楼主| 发表于 2007-12-24 11:37 | 显示全部楼层
谢谢
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-5-15 12:55 , Processed in 0.060996 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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