This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Periodogram spectrum


Hs = spectrum.periodogram
Hs = spectrum.periodogram(winname)
Hs = spectrum.periodogram({windowname,winparameter})


    Note:   The use of spectrum.periodogram is not recommended. Use periodogram instead.

Hs = spectrum.periodogram returns a default periodogram spectrum object, Hs, that defines the parameters for the periodogram spectral estimation method. This default object uses a rectangular window and a default FFT length equal to the next power of 2 (NextPow2) that is greater than the input length.

Hs = spectrum.periodogram(winname) returns a spectrum object, Hs, that uses the specified window. If the window uses an optional associated window parameter, it is set to the default value. This object uses the default FFT length.

Hs = spectrum.periodogram({windowname,winparameter}) returns a spectrum object, Hs, that uses the specified window and optional associated window parameter, if any. You specify the window and window parameter in a cell array with the window name and the parameter value. This object uses the default FFT length.

Valid window names are:

'Flat Top'
'User Defined'

See window and the corresponding window function page for window parameter information.

You can use set to change the value of the additional parameter or to define the MATLAB® expression and parameters for a user-defined window (see spectrum for information on using set).

    Note   Window names must be enclosed in single quotes, such as spectrum.periodogram('Tukey') or spectrum.periodogram({'Tukey',0.7}).

    Note   See periodogram for more information on the periodogram algorithm.


collapse all

Define a cosine of 200 Hz sampled at 1 kHz. Add noise and view the spectral content of the signal using the periodogram spectral estimation technique with default values.

Fs = 1000;
t = 0:1/Fs:.3;
x = cos(2*pi*t*200)+randn(size(t));
Hs = spectrum.periodogram;


[1] harris, fredric j. "On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform." Proceedings of the IEEE®. Vol. 66, January 1978, pp. 51–83.

See Also

| |

Introduced before R2006a

Was this topic helpful?