Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re: FFT - Defining Frequency Axis

Status
Not open for further replies.

SpaceEngineer

Aerospace
Sep 19, 2010
2
US
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








 
Replies continue below

Recommended for you

I doubt any problems with leakage are associated with errors in the frequency axism which by eye looks Ok to within a factor of 2.

Hanning. There's a lot more to signal analysis than 'understanding ffts'.

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
if you are attempting to characterize the freq content of a time signal, especially if it is noisy, the segment of data may have a dc level that needs removing. you'll get cleaner results, windowing can help as well a averaging multiple data sets. In some cases when the spectrum is particularly noisy wavelet transforms are helpful

 
Always start with a trivial synthesised signal, it's the only way. When you're happy that the magnitude vs frequency plot is what you expect, then introduce real data.

- Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top