How to get the matrix of corresponding values of a PSD graph?

조회 수: 1 (최근 30일)
Raihan Khalil
Raihan Khalil 2017년 7월 30일
답변: Star Strider 2017년 7월 30일
I did PSD of a digital data-set. I can plot the PSD graph. But I need the corresponding values of the graph for further operation. How can I do that? My code is here.
load 's01.mat';
t = linspace(1,8064);
new = data(:,1,:);
new = new(1,1,:);
new = reshape(new,1,8064);
Fs = 128;
h = spectrum.welch;
sx1 = psd(h,new,'Fs',Fs);
figure
subplot 211, plot(new);
subplot 212, plot(sx1);

답변 (1개)

Star Strider
Star Strider 2017년 7월 30일
The psd function is going to be deprecated in the not distant future.
I would use the pwelch (link) function instead of psd. It should provide all the information you want.

카테고리

Help CenterFile Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by