help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FFT - Spectrum Analyzer


From: Francesco Potortì
Subject: Re: FFT - Spectrum Analyzer
Date: Tue, 12 Jun 2012 14:41:13 +0200

>For a long, non-stationary signal, you probably want to estimate the 
>power spectral density of the generating stochastic process (lots of 
>fancy words). This is done by the computing a "Welch periodogram".
>
>So long story short: type
>
>pwelch(input_signal,hamming(200));
>
>and play aroung with the length of Hamming window until you get the 
>display you want. Octave's pwelch does not seem to plot on a dB scale, 
>so you might want
>
>plot(20*log10(pwelch(input_signal,hamming(200)));

Since this is the power, 10*log10 should be the right way.  Also, the
'db' argument to pwelch should produce a dB plot by itself.  Have a look
at 'help pwelch' for all the options.  Notice that pwelch is part of the
'signal' package, which should be installed in order to use it.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

[Prev in Thread] Current Thread [Next in Thread]