Borrar filtros
Borrar filtros

please explainn this and guide me to develope the code

1 visualización (últimos 30 días)
[P,F] = spectrum(SSSS,128,0,hanning(128),1/15);
is the old version of matlabs solution to find the spectrum of the signal named 'SSSS'.
can any one explain this ??
what is the equivalent of above spectrum, that compatible to the latest version of MATLAB ?

Respuesta aceptada

Wayne King
Wayne King el 30 de Jul. de 2013
You can do the following
[Pxx,F] = pwelch(SSSS,hanning(128),0,128,1/15);
The syntax you are using above is:
[P,F] = SPECTRUM(X,NFFT,NOVERLAP,WINDOW,Fs)
to get the equivalent in an updated version of MATLAB use the corresponding syntax for pwelch.m

Más respuestas (0)

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by