Fast Fourier Transform (FFT) in a certain range of signal

조회 수: 7 (최근 30일)
Jimmy
Jimmy 2015년 8월 22일
답변: Star Strider 2015년 8월 22일
Greetings, I have a signal which consist of one 1000000x1 array (data) and one 1000000x1 array (time) which has been 'cut' and looks like the figure below.
Is it possible for me to do Fast Fourier Transform(FFT) on that signal? If possible, how do I perform the FFT on this signal? Assuming the operating frequency is 1000Hz
The coding that I have done to cut the signal are a follows:
load('TestSig.mat');
[data_max,max_idx] = max(data); %Locating the maximum data value
time_at_max = time(max_idx); %Locating time at the maximum data value
left2 = data(max_idx-[120000:-1:1]); %Taking few samples at the left from the max value
right2 = data(max_idx+[1:200000]); %Taking few samples at the right from the max value
left2_time = time(max_idx-[120000:-1:1]) %Time of samples at the left from the max value
right2_time = time(max_idx+[1:200000]) %Time of samples at the left from the max value
win_idx = (max_idx-120000):(max_idx+200000);
plot(time(win_idx), data(win_idx))
The attached file contains the .mat file of original data. Thank you in advance.

답변 (1개)

Star Strider
Star Strider 2015년 8월 22일
Yes. See my Comment replying to your earlier Comment.

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by