Read CSV file

64 views
Skip to first unread message

nikitako...@gmail.com

unread,
Feb 5, 2016, 12:20:30 PM2/5/16
to ecg-kit users
Hi!

I would like to make QRS detection for ECG signal, which is written in CSV-file.

But this format is not readable for ECG-kit. How can I transform this file to readable format?

Mariano Llamedo Soria

unread,
Feb 5, 2016, 3:00:22 PM2/5/16
to nikitako...@gmail.com, ecg-kit users
Hi Nikita and thanks for your interest, you can easily read the CSV format with Matlab, and then format as described in 


the ECG header variable should be created according to


Keep me updated if you have more troubles with that. Good luck !

Best,
M.

--
You received this message because you are subscribed to the Google Groups "ecg-kit users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ecg-kit-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ecg-kit-users/c3a86dfa-5c55-47f2-918c-7ff38cf47213%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nikitako...@gmail.com

unread,
Feb 8, 2016, 5:39:51 AM2/8/16
to ecg-kit users, nikitako...@gmail.com
Thank you!

So, I created such header file and tried to do:

ECGt_QRSd = ECGtask_QRS_detection();
ECGt_QRSd.detectors = {'wavedet'};
sig = csvread('C:\ecg_kit\RealHolterSample_48min.csv'); %read csv with 3 channels
sig = reshape(sig,[size(sig, 1)/3, 3]);  
save('C:\ecg_kit\RealHolterSample_48min.dat','sig'); %save to dat-file
ECG_w = ECGwrapper('recording_name', 'C:\ecg_kit\RealHolterSample_48min.dat')
ECG = ECG_w.read_signal;

So ECG != sig. I think that I make uncorrect saving. How can I save data in correct format?

Mariano Llamedo Soria

unread,
Feb 8, 2016, 1:31:40 PM2/8/16
to Никита Котляров, ecg-kit users
Hi Nikita, you can check the file included in ecgkit_root/recordings/example_recording.mat to check the correct fields you must include in a .mat file.

Best !
Mariano.

Reply all
Reply to author
Forward
0 new messages