I am using textscan to read data from a file. The data being read is:
"ABC",0.156
"DEF",0.125
"GHI",0.101
My code is - data = textscan(fid, '%s %f', 'Delimiter', ',');
data{1} come as
'"ABC"'
'"DEF"'
'"GHI"'
I want the data{1} as -
'ABC'
'DEF'
'GHI'
Finally, how can I have the answer as
data =
'ABC' [0.156];
'DEF' [0.125];
'GHI' [0.101];
instead of using data{1} and data{2}. Thanks!