I'm working on converting functions from Matlab into Scilab. One
particular funciton that I'm trying to convert is the spectrogram
function that can be found in Matlab. I can't find any equivalent
funciton in Scilab. How do you create a spectrogram in Scilab?
I'm using the following spectrogram funciton in Matlab "[S,F,T,P] =
spectrogram(...) returns a matrix P containing the power spectral
density (PSD) of each segment. For real x, P contains the one-sided
modified periodogram estimate of the PSD of each segment. For complex
x and when you specify a vector of frequencies F, P contains the two-
sided PSD."
Thanks,
SJR
See pspect() in Scilab, as well as mapsound() in some more limited way
(display only).
Please report the full list of possible input and output arguments of
spectrogram(), whether you wish to compare it to any Scilab equivalent
function.
HTH
Samuel
Here are the input and output arguments:
Input: (x, window, noverlap, nfft, Fs)
x= signal vector
window= Hamming window of length nfft
noverlap= number of overlapping segments that produces 50% overlap
between segments
nfft= FFT length
Fs= Sampling Frequency
Output: [S,F,T,P]
S= short time fourier transform
F= vector of rounded frequencies
T= vector of times at which the spectrogram is computed
P= matrix containing the power spectral density of each segment
If there's any other information that I can provide, let me know.
Thanks,
SJR