edward kabanyas
unread,May 27, 2012, 10:05:07 PM5/27/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Dear all;
I have two types of tab delimited files, first separated with ' ' or 'space' and ';' or 'semi'. All files are in CSV type and have a header file which is not variable names separated by the tabs.
For the first type (separated with space), I read as:
fid = fopen(fname1);
fmt=['%s %s %f %f %d %s %s %f %d %d %d %d %f %f %s' repmat('%8.1f',1,1024) '%s'];
data = textscan(fid,fmt,'HeaderLines',1,'Delimiter',',','CollectOutput',1);
However, for the second type (separated with ';') I have problem to read it.
I tried to use tdfread, but the header file is not variable names separated by the tabs and the number of header column is not the same as the second row (data). In another data, data separated with ';' are without header file.
Probably you have expecrience in reading this kind of data, separated with ';' but without variable names in the first row.
Thank you,
Edward