Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Spectrogram in Scilab

2,004 views
Skip to first unread message

Steve

unread,
Jan 26, 2010, 6:35:41 PM1/26/10
to
Hi all,

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

SG

unread,
Jan 26, 2010, 10:42:29 PM1/26/10
to
Hi Steve,

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

Steve

unread,
Jan 27, 2010, 6:24:16 PM1/27/10
to

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

Anand Kumar

unread,
Apr 15, 2015, 10:55:58 AM4/15/15
to
hi all,

i want to create a spectrogram signal using FFT in scilab for a sound file. please suggest the commands to do it or any tutorials of it . thankyou.
0 new messages