马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
请各位高手帮我看看这个程序啊,figure(2)怎么都出不来波形……
急死了……
clc;clear;
p=ones(1,10001);
t=0:0.0001:1;
aa=find(t>0.325&t<=0.556);
p(aa)=0.85;
s=p.*cos(2*pi*50*t)
figure(1);
plot(t,s)
[A,f,tt]=hhspectrum(s);
figure(2);
plot(t(1:9999),A)
命令窗口出现了这几句话
??? Undefined function or method 'hhspectrum' for input arguments of type 'double'.
Error in ==> dianxianaoxianhht at 9
[A,f,tt]=hhspectrum(s);
不知道是不是hhspectrum有问题……
希望得到大家的帮助…… |