Skip to content
Snippets Groups Projects
Commit 83edd922 authored by Marina Kreme's avatar Marina Kreme
Browse files

add doc

parent 4b38dc01
Branches
Tags
No related merge requests found
Pipeline #5933 passed
function plot_spectrogram(x, dgt_params, signal_params, dgt, dynrange, clim) function plot_spectrogram(x, dgt_params, signal_params, dgt, dynrange, clim)
%% 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: % Inputs:
% - x: signal % - x (nd array): signal
% - dgt_params: dgt parameters % - dgt_params (struct): dgt parameters (see tf_tools/generate_dgt_parameters.m)
% - signal_params: signal parameters % - signal_params: signal parameters
% - dgt : Gabor transform operator % - dgt (handle) : DGT operator (see utils/get_stft_operators.m)
% - dynrange : optional % - dynrange (float) : Dynamic range to be displayed.
% - clim: optional % - clim (sequence): Min and max values for the colorbar.
% If both 'clim' and 'dynrange' are specified,
% then clim takes precedence.
%
% %
% Author : A. Marina KREME % Author : A. Marina KREME
%% %%
...@@ -24,8 +26,6 @@ if nargin==4 ...@@ -24,8 +26,6 @@ if nargin==4
clim = [c_max - dynrange, c_max]; clim = [c_max - dynrange, c_max];
end end
plotdgtreal(x, dgt_params.hop, dgt_params.nbins, signal_params.fs,..., plotdgtreal(x, dgt_params.hop, dgt_params.nbins, signal_params.fs,...,
'dynrange', dynrange,'clim',clim) 'dynrange', dynrange,'clim',clim)
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment