Producing a PSD Estimate
We now produce a PSD estimate of the signal we created in the
previous section. To generate a PSD estimate, you apply a spectral
estimation method on your spectrum object and data. ,
h = spectrum.welch;
Hpsd=psd(h,y,'Fs',Fs,'ConfLevel',0.95);
plot(Hpsd)

The syntax for using psd, msspectrum,
or pseudospectrum is the same. The first input
is the spectrum object (h) and the second input
(y) is the signal (data), followed by any settable
properties using property-value pairs ('Fs', Fs,'ConfLevel',0.95,'). To set property-value pairs, you list the
property first and then the value for that property.
 | Creating a Spectral Analysis Object | | Changing Spectral Analysis Object Property Values |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit