11问答网
所有问题
如何用MATLAB生成f(t)=g(t)cos10πt的信号波形,其中g(t)为门函数
我直接写
t=-1:0.001:3;
g=2*(t>=-0.5)-(t>=0.5);
stairs(t,g);
axis([-1,1,0,3])
>> f=g*cos(10*pi*t)
出错了,为什么?
举报该问题
推荐答案 2009-04-23
t=-1:0.001:3;
g=(t>=-0.5)-(t>=0.5); %没有2
stairs(t,g);
axis([-1,1,0,3])
f=g.*cos(10*pi*t); %点乘,即数组乘法
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://11.wendadaohang.com/zd/MS8F4888.html
相似回答
如何用matlab
画
波形
图
答:
t=0:0.1:5;plot(t,2.*
cos(
2.*pi.*
t))
;grid;plot(t,4.*cos(2.*pi.*t+pi./3));grid;plot
(t,(
4.*cos(2.*pi.*t+pi./3)+2.*cos(2.*pi.*t)));grid;迈特莱博
大家正在搜
以f开头的生成
求f23的生成元
生成的英文f
f开头的生成英文
tcn生成
t.cn 短链接生成
tcn短链接生成方法
tcn短链接生成器
tcn短链接在线生成