Hi.. I'm need help for power spectra density coding??
2 views (last 30 days)
Show older comments
length(y)
nfft = 2^nextpow2(length(y_delta));
Fs=100;
Pxx = abs(fft(y,nfft)).^2/length(y)/Fs;
subplot(2,2,1),
plot(Pxx,'DisplayName','Pxx','YDataSource','Pxx');
Hpsd = dspdata.psd(Pxx(1:length(Pxx)/2),'Fs',Fs);
plot(Hpsd);
this is my program for PSD.. y is my name of data.. the problem is the graph will plot the x axis as frequency and y axis in dB.. the problem is, i want to maintain my amplitude value at y axis without changing it into dB.. how i can do that? anyone can help me?
0 Comments
Answers (0)
See Also
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!