⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stft.m

📁 rang doppler imaging and motion compensation中的源代码
💻 M
字号:
function x = stft(sig,fftlength,winlength,tr)

% STFT(input signal, fftlength, window length, time resolution)
%
% This routine can use hamming, rectangular or any other
% type of analysis window if this code is modified.

sig = sig';
win = hamming(winlength)';
ls = length(sig);
lw = length(win);
lm = lw;

i = 1;		% block counter and index
 while lw < ls,	% throws away the last unfilled block
  blocki = sig(1,lw-lm+1:lw).*win;
  x(i,1:fftlength)=fft(blocki,fftlength);
  lw = lw + tr;
  i = i + 1;
 end


return


a = abs(x);
a = a';
a = a/max(max(a));
a = 1-a;
a = a*128;
colormap(gray(128))
image(a);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -