clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window,32,256,Fs);
figure
surf(T,F,10*log10(abs(P)));
axis tight;
view(0,90)
xlabel('时间/s')
ylabel('频率/Hz')
title('Chirp信号的STFT变换结果')
saveas(gcf,'STFT结果.jpg')clc
close all
clear all
%窗口函数%?
nw=50; window=rectwin(nw);
%?非平稳信号产生%?
Fs=1000; t=0:1/Fs:1;
F0=0; F1=300;
y1=chirp(t,F0,1,F1,'linear');
x=y1(1:500);
figure
plot(x)
xlabel('时间/s')
ylabel('振幅')
title('Chirp信号')
saveas(gcf,'Chirp信号.jpg')
%?短时傅里叶变换%??
[S,F,T,P]=spectrogram(x,window
评论1