Fast Fourier transform - MATLAB

Click For Summary
SUMMARY

The discussion focuses on performing a Fast Fourier Transform (FFT) on raw data using MATLAB. Users can extract specific columns from their dataset using the syntax col3=foo(:,3). The FFT can be computed using the fft function, as detailed in the MATLAB documentation. Additionally, users can utilize the plot function to visualize the FFT results.

PREREQUISITES
  • Basic understanding of MATLAB syntax and functions
  • Familiarity with data manipulation in MATLAB
  • Knowledge of Fast Fourier Transform (FFT) concepts
  • Experience with data visualization techniques in MATLAB
NEXT STEPS
  • Explore the MATLAB fft function documentation for advanced options
  • Learn about data preprocessing techniques in MATLAB before applying FFT
  • Investigate the plot function for effective data visualization
  • Study examples of FFT applications in signal processing using MATLAB
USEFUL FOR

This discussion is beneficial for beginners in MATLAB, particularly those interested in signal processing and data analysis using FFT techniques.

bs19777
Messages
1
Reaction score
0
I have raw data in following format

Time <-> Ch1 <-> Ch2 <-> Ch3
0.01 <-> 1.6 <-> 1.62 <-> 1.92
0.03 <-> 1.63 <-> 1.62 <-> 1.96
0.05 <-> 1.63 <-> 1.63 <-> 2.04
...so on 1000 raw

PS: those <-> are used in this forum to show as table, in actual data those are separate column.

How can I plot FFT in MATLAB from this data ?

Do I have to convert anything first ?

I am newbi to matlab, any help would be greatly appreciated.

Thanks a lot in advance.
 
Physics news on Phys.org
Welcome to PhysicsForums!

If the data is named foo, you can extract say, the third column by typing in:
>>col3=foo(:,3)

(the syntax means extract every row of the third column)

To take the FFT, you use the fft function:
http://www.mathworks.com/help/techdoc/ref/fft.html

You can find plotting information (the 'plot' function) by clicking the 'index' button on the left hand side of the screen.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
12
Views
6K
Replies
5
Views
8K