필터 지우기
필터 지우기

Signal Analysis using the Short Time Fourier Transform

조회 수: 2 (최근 30일)
Win
Win 2014년 2월 26일
I'm trying to analyse some data with the Short Time Fourier Transform using the codes below. Plotting just the spectrogram gives me a colourful figure which does not give that much insight into the data. So I'm trying to get different plots out of it. Eg plot(F,abs(S(:,10))) which I assume is plotting frequency F versus the 10th column of STFT values. Can you please tell me how do I get the absolute value of the frequency on the Y-axis.
I'm also not sure whether my approach is right. Is there any other way to extract data by processing the signal?
Thanks
if true
clear all
Array = csvread('Wheelflat-63dB.csv');
dt = mean(diff(Array(:,1)));% sampling period
Fs = 1/dt;
[S,F,T,P] = spectrogram(Array(:,2),3000,2800,2000,Fs);
surf(T,F,10*log10(abs(P)),'EdgeColor','none');
axis xy; axis tight; colormap(jet); view(0,90);
xlabel('Time (s)');
ylabel('Frequency (Hz)');
plot(F,abs(S(:,10)))
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by