I would like to read a Comma Separated Values (CSV) file that contains a header and a mix of characters and numbers:
First Name,Last name,Age John,Doe,100 Jane,Doe,13 Richard,Roe,50
I receive an error when I try to import this file using CSVREAD since this MATLAB function only supports numeric data types.
Although it is possible to use TEXTSCAN as an alternative, it seems that TEXTSCAN, as compared to FSCANF is more high level file reading function, and I am concerned about the time it takes to handle very large data files. So I would prefer to use FSCANF, which is a lower level file scan routine.
Best Answer