John Demetriou
John Demetriou

Reputation: 4391

Importing a csv file in Matlab with multiple types into a 2D array

I am trying to import a CSV file in Matlab. The file contains integers, floats and a timestamp of the time taken. csvread or dlmread do not do the trick due to mixed file types. On the other hand I tried textscan as suggested here but the whole data is put into a Nx1 array (with N being the number of lines in the csv file. The data is EEG data that I wish to perform some band bass filtering to it, but first I need to read the file in a 2D array. Any ideas? P.S. I am using Matlab R2013a

Example file can be found here

Upvotes: 0

Views: 505

Answers (1)

Daniel
Daniel

Reputation: 36720

If you can not use Excel, this Question is a duplicate (comment of Eitan). Otherwise I would recommend to use xlsread, this uses excel com interface and is able to read everything excel can read.

Upvotes: 1

Related Questions