I use IMPORTDATA to import a text file into MATLAB. The text file contains numbers in ASCII. Some of the numbers are enclosed by double quotes (").
In MATLAB 7.1 (R14SP3) and earlier, IMPORTDATA imports the data as a single matrix of type DOUBLE.
However, in MATLAB 7.2 (R2006a), IMPORTDATA gives me a STRUCT that contains a matrix of type DOUBLE and a cell string array, which is not what I expected.
If I directly use LOAD -ascii on the text file, I receive the following error message:
??? Error using ==> load Unknown text on line number 1 of ASCII file \\depot02\rel\edg\cases\1-38Y2MO\sample.txt ""0"".
Best Answer