找回密码
 注册
Simdroid-非首页
查看: 45|回复: 0

郁闷 求帮助~~matlab 想实现一个三角波和矩形波的卷积

[复制链接]
发表于 2012-4-15 15:32:49 | 显示全部楼层 |阅读模式 来自 上海
>> p=0.01;
k1=-1:p:1;
f1=tripuls(k1,2);
k2=0:p:1;
f2=ones(1,length(k2));
[f,k]=sconv(f1,f2,k1,k2,p)
运行出错
??? Error using ==> plot
Vectors must be the same lengths.

Error in ==> sconv at 26
plot(k,f);      

fi是一个以0为中心 宽度为2,斜度为1的三角波
我这样写有什么地方不对呀
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-7-5 12:05 , Processed in 0.026176 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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