I have a text file which I want to import into matlab. Here are the first 2 rows of the text file (tempfile.txt):
1,"4/26/2016","6:40:00 PM","111","0","13.45","NaN","ACTIVE","NaN",
2,"4/26/2016","6:40:30 PM","73","0","14.99","NaN","ACTIVE","NaN",
When I tried using textscan:
fid = fopen('tempfile.txt');
data = textscan(fid, '%*d %s %s %s %*d %*d %*d %*s %*s', 'Delimiter', ',')
It only imports the first row of the text file. I have tried adding \n to the formatSpec but it still does not work. Please help!