plot_spectrogram.sci

来自「signal procesing toolbox」· SCI 代码 · 共 39 行

SCI
39
字号
function plot_spectrogram(S,f, options)// plot_spectrogram - display the spectrogram////   plot_spectrogram(S,f, options);////   f is the 1D signal.//   S is the spectrogram.////  Copyright (c) 2008 Gabriel Peyre// keep only low frequencies.S = rescale(abs(S(1:$/2,:)));options.null = 0;if argn(2)<2    f = [];endnormalization = getoptions(options , 'normalization', 'log');if strcmp(normalization, 'log')    S = log(S+1e-4);endif not(isempty(f))    n = size(f,1);    clf;    subplot(2,1,1);    plot(1:n,f); axis tight;    subplot(2,1,2);endimageplot(S);set_colormap('jet');//axis normal; //axis on;//colormap jet(256);endfunction

⌨️ 快捷键说明

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