Decide whether to support unicode files
The unicode file GMM_data.csv does not work due to a byte order mark (BOM) at the beginning. We use importdata
, which assumes we are loading an ASCII file:
temp=importdata('GMM_data.csv', ',');
double(temp.textdata{1}(1))
In contrast, readtable
correctly detects unicode and drops the BOM:
temp2=readtable('GMM_data.csv');
double(temp2.Properties.VariableNames{1}(1))