Commit 83edd922 authored by Marina Kreme's avatar Marina Kreme
Browse files

add doc

parent 4b38dc01
Pipeline #5933 passed with stage
in 5 minutes and 15 seconds
function plot_spectrogram(x, dgt_params, signal_params, dgt, dynrange, clim)
%% plot_spectrogram(x, dgt_params, signal_params, dgt, dynrange, clim)
% Function that displays the spectrogram of a signal
%
% Plot spectrogram of a signal
% Inputs:
% - x: signal
% - dgt_params: dgt parameters
% - x (nd array): signal
% - dgt_params (struct): dgt parameters (see tf_tools/generate_dgt_parameters.m)
% - signal_params: signal parameters
% - dgt : Gabor transform operator
% - dynrange : optional
% - clim: optional
% - dgt (handle) : DGT operator (see utils/get_stft_operators.m)
% - dynrange (float) : Dynamic range to be displayed.
% - clim (sequence): Min and max values for the colorbar.
% If both 'clim' and 'dynrange' are specified,
% then clim takes precedence.
%
%
% Author : A. Marina KREME
%%
......@@ -18,14 +20,12 @@ if size(x,2)==1
end
if nargin==4
if nargin==4
dynrange=100;
c_max = max(db(x(:)));
clim = [c_max - dynrange, c_max];
end
plotdgtreal(x, dgt_params.hop, dgt_params.nbins, signal_params.fs,...,
'dynrange', dynrange,'clim',clim)
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment