Using fft on ecg data?
Show older comments
I have ecg data that is made up of two columns, milliseconds since session start and Compound ECG (in mV). I want to use the fft function on the data so that I can further analyze it.I wish I could be more specfic but I'm fairly new to using matlab so I'm not quite sure what I'm doing wrong. The data is stored in csv format. How do I correctly pass the data I need into the function to use?
Here's an example of what the data looks like:
- Millisec | ECG mV
- 2457 | -0.09
- 2461 | -0.085
- 2465 | -0.085
- 2469 | -0.09
- 2473 | -0.095
- 2477 | -0.1
- 2481 | -0.11
- 2485 | -0.115
- 2489 | -0.115
- 2493 | -0.12
- 2497 | -0.12
- 2501 | -0.12
- 2505 | -0.125
- 2509 | -0.13
Answers (1)
Azzi Abdelmalek
on 13 Apr 2016
0 votes
Use csvread http://www.mathworks.com/help/matlab/ref/csvread.html or xlsread http://www.mathworks.com/help/matlab/ref/xlsread.html to import your data, then use fft function http://www.mathworks.com/help/matlab/ref/fft.html
Categories
Find more on Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!