dspdata display units for spectrum

--

How can I change dspdata spectrum units, its in dB (dB/Hz for PSD), I would like the spectrum in real units.

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The data itself is saved in linear scale, not dB scale. It is only the plotting that displays the value in dB scale. You can try the following:

h = psd(spectrum.periodogram,randn(1024,1));
plot(h.Frequencies,h.Data);

This way the yaxis is in linear scale.

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet