資源簡介
BS.m 生成混合掃頻信號求出STFT譜及功率譜 INF.m 單分量信號求瞬時頻率 INF1.m 求信號瞬時頻率并進行最小二乘擬合 signal.m 對混合掃頻信號時域波形進行畫圖 signalFFT.m 顯示混合掃頻信號時域及頻域波形
代碼片段和文件信息
%生成模擬信號
t=1:0.01:50;
x1=chirp(t0508);
x2=chirp(t05012);
x3=chirp(t05016);
x4=chirp(t05020);
x0=x1+x2+x3+x4;
%STFT
figure(1);
%?subplot(221);
%?plot(tx0);
%?grid;
%?axis([0?60?-1?1]);
%?ylabel(‘chirp?1‘);
%?title(‘Signal‘);
[SFTP]=spectrogram(x02562502561E3);
subplot(211);
[Ch]=contour(T(F(1:length(F)/2))/10abs(S(1:length(F)/2:)));
grid;
axis?tight;
xlabel(‘Time(seconds)‘);
ylabel(‘Frequency(Hz)‘);
title(‘STFT‘);
%功率譜
subplot(212);
surf(10*TF/1010*log10(P)‘edgecolor‘‘none‘);
axis([0?50?0?25]);
view(090);
xlabel(‘Time?(Seconds)‘);ylabel(‘Hz‘);
title(‘PSD‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????636??2014-05-08?10:19??掃頻信號時頻分析\BS.m
?????文件?????????171??2014-05-08?10:47??掃頻信號時頻分析\INF.m
?????文件?????????609??2014-02-25?16:17??掃頻信號時頻分析\INF1.m
?????文件?????????738??2014-04-24?15:25??掃頻信號時頻分析\signal.m
?????文件?????????537??2014-04-29?17:28??掃頻信號時頻分析\signalFFT.m
?????目錄???????????0??2014-05-08?10:48??掃頻信號時頻分析\
評論
共有 條評論