If I have a CSV file with the following data:
a, A, "a,apple" b, B, "b,bear" c, C, "c,cat"
and I read it in using TEXTSCAN, MATLAB parses the fields in the following way:
aA"aapple" bB"bbear" cC"ccat"
I would like TEXTSCAN to be able to parse the file in such a way as to ignore occurrences of the delimiter within double-quoted strings, such that the resulting output is
aAa,apple bBb,bear cCc,cat
Best Answer