I have a file test.txt looks like:
datetime season holiday workingday weather atemp humidity
2011/1/1 0:00 1 0 0 1 cold high
2011/1/1 1:00 1 0 0 1 cold high
I want to import them into matlab by delimiter "\t". However, a=importdata('test.txt','\t') just import data as a whole rather than separating by \t.
I also try other command like dlmread:
Error using dlmread (line 139) Mismatch between file and format string. Trouble reading number from file (row 1u, field 1u) ==> datetime season holiday workingday weather atemp humidity\n
then i try str1=textsacn('test.txt','%s%s%s%s%s%s%s');
Undefined function 'textsacn' for input arguments of type 'char'.
My matlab version is 2012a. I use windows. could anyone help?