Best way to read .txt file into matlab?

KCDTylerKCDTyler Melbourne, Australia
edited March 2018 in Software
Hi all,

Apologies in advance if this has been covered elsewhere (I'm sure it must have been, but surprisingly I could not see anything in the forum).

What are peoples best way to read the Cyton data (.txt) into matlab?

To date I have been opening data recorded by the Cyton with a csvread command. 
eg: 

eeg_data = csvread('OpenBCI-RAW-2018-02-04_12-48-15.txt', 7, 1);


However this is not reading the data correctly. 
Not only does the resulting egg_data.mat file have zeros introduced into every second row, but about the second half of the recording/.txt file is not read into the eeg_data.mat file.

I have sifted through various matlab forums but have not really found a clear answer to best practice for reading .txt into matlab. 

Can someone just cut and paste a reply here, with the matlab commands they would use to open the .txt file recorded by the Cyton board, into matlab?
I just want a matrix of the raw data. 
That would be so helpful.

Cheers,


Comments

Sign In or Register to comment.