SpaceEngineer
Aerospace
Hello Everyone,
I'm trying to analyse a time-varying signal for helicopter main rotor pitch rod using FFT in Matlab.
I have written the code and understand the concept of FFT too but the specification of the frequency axis does not seem to work too well as I'm getting a lot of frequency leakage for my signal.
If anyone can please take a look at the following code and make suggestions, I would be grateful, particularly for defining the frequency axis in Hz.
%Define Variables
x = 24;
N = 2^x;
f_datalog = 48;
fs = f_datalog*6;
X = fft(MRPR1,N); %Perform N-Point FFT on the data
Y = abs(X); %Determine the magnitude
f = ((0:N-1)*(fs/N)); %Specify the frequency range
plot(f,Y),axis([0 60 0 3.5*10^5])
title('Magnitude Versus Frequency for MRPR1 D8C1');
xlabel('Frequency (Hz)');
ylabel('Magnitude');
%grid on
Thanks heaps,
SpaceEngineer
I'm trying to analyse a time-varying signal for helicopter main rotor pitch rod using FFT in Matlab.
I have written the code and understand the concept of FFT too but the specification of the frequency axis does not seem to work too well as I'm getting a lot of frequency leakage for my signal.
If anyone can please take a look at the following code and make suggestions, I would be grateful, particularly for defining the frequency axis in Hz.
%Define Variables
x = 24;
N = 2^x;
f_datalog = 48;
fs = f_datalog*6;
X = fft(MRPR1,N); %Perform N-Point FFT on the data
Y = abs(X); %Determine the magnitude
f = ((0:N-1)*(fs/N)); %Specify the frequency range
plot(f,Y),axis([0 60 0 3.5*10^5])
title('Magnitude Versus Frequency for MRPR1 D8C1');
xlabel('Frequency (Hz)');
ylabel('Magnitude');
%grid on
Thanks heaps,
SpaceEngineer