How can I convert the units of the y-axis into miliseconds^2/Hz in power spectral density analysis of an ECG signal?
Show older comments
This is the code that plots the PSD in dB/Hz on the y-axis
nfft = 2^nextpow2(length(ecg));
Pxx = abs(fft(ecg,nfft)).^2/length(ecg)/fs;
Hpsd= dspdata.psd(Pxx(1:length(Pxx)/2),'fs',fs);
p = plot(Hpsd);
Accepted Answer
More Answers (0)
Categories
Find more on Parametric Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!