yingpk 发表于 2009-5-5 10:11

【求助】跳频信号做STFT时出现的错误

我毕设是做跳频信号的跳速估计的,做跳频信号的STFT, 运行如下代码:
fh=c(1:length(fsk)).*hilbert(fsk);
% 以下是加噪声
SNR=-2;                         %--信噪比为-2dB
snr_lin=10^(SNR/10);            %--信噪比转化为功率比
sigma2=std(fh)^2; noisepower=sigma2/snr_lin;            %--噪声功率
noise=normrnd(0,noisepower,1,length(fh));
fh=fh+noise;                                 %--x(t)=s(t)+n(t),接收信号等于跳频信号+噪声

figure(2); subplot(2,1,2);
plot(real(fh)); title('\bf\it FH Waveform ');

figure(3); subplot(2,1,1);
=specgram(fh,32,16,128,fs,'yaxis');   
imagesc(t,f,20*log10(abs(b))); title('\bf\it STFT of FH signal ');

产生如下错误:
??? Error using ==> specgram
Too many input arguments.(请问这个是怎么回事,请求高手指导)

[ 本帖最后由 ChaChing 于 2009-5-5 10:49 编辑 ]

ChaChing 发表于 2009-5-5 10:45

回复 楼主 yingpk 的帖子

help specgram
Too many input arguments!
B = specgram(a,nfft,fs,window,numoverlap)
页: [1]
查看完整版本: 【求助】跳频信号做STFT时出现的错误