Extracting periodicity with Fast Fourier Transform

AI Thread Summary
To extract the period from a complex discrete signal using Fast Fourier Transform, it's crucial to correctly apply the relationship between period and frequency, which are inversely related. The discussion highlights a systematic bias in the initial Matlab script, suggesting that dividing by the sample frequency is necessary. However, confusion arises regarding whether to use the y-axis or x-axis values from the frequency domain graph. Clarification on the definitions of index and sample frequency is also sought. Ultimately, the suggested formula for calculating the period is to use the length of the sequence multiplied by the time step (dt) divided by the index.
Ebert87
Messages
2
Reaction score
0
Hello all,

I want to extract the period out of a complex discrete signal.

Currently I have the Matlabscript of the attachement.

However, the values I get out of this script are not correct. There is some kind of systematic bias in it.

I think it has something to do with index * samplefrequency.

Anyone an idea what could be wrong?

Thanks in advance!
 

Attachments

  • matlab script.jpg
    matlab script.jpg
    28.7 KB · Views: 507
Engineering news on Phys.org
Right, you should divide by sample frequency. Period and frequency have inverse relation.
 
Hassan2 said:
Right, you should divide by sample frequency. Period and frequency have inverse relation.

Thanks, I tried it, but now the values are extremely big. Maybe I am using the y-axis value of the frequency domain graph, instead of the x-axis value (which says something about thefrequency of the original signal, right?)?

Getting confused now :confused:
 
What are the values of index and Samplefreq?

I think you should use this:

Period=(Length of the sequence)*dt/index
 
Posted June 2024 - 15 years after starting this class. I have learned a whole lot. To get to the short course on making your stock car, late model, hobby stock E-mod handle, look at the index below. Read all posts on Roll Center, Jacking effect and Why does car drive straight to the wall when I gas it? Also read You really have two race cars. This will cover 90% of problems you have. Simply put, the car pushes going in and is loose coming out. You do not have enuff downforce on the right...
Thread 'Physics of Stretch: What pressure does a band apply on a cylinder?'
Scenario 1 (figure 1) A continuous loop of elastic material is stretched around two metal bars. The top bar is attached to a load cell that reads force. The lower bar can be moved downwards to stretch the elastic material. The lower bar is moved downwards until the two bars are 1190mm apart, stretching the elastic material. The bars are 5mm thick, so the total internal loop length is 1200mm (1190mm + 5mm + 5mm). At this level of stretch, the load cell reads 45N tensile force. Key numbers...
I'm trying to decide what size and type of galvanized steel I need for 2 cantilever extensions. The cantilever is 5 ft. The space between the two cantilever arms is a 17 ft Gap the center 7 ft of the 17 ft Gap we'll need to Bear approximately 17,000 lb spread evenly from the front of the cantilever to the back of the cantilever over 5 ft. I will put support beams across these cantilever arms to support the load evenly
Back
Top