rm2
Mechanical
- Jun 7, 2005
- 41
Hello,
I am trying to use the textscan command to work a csv file we generate on a test stand.
First I have 115 strings as headers, for this I thought of:
C_text = textscan(fid, ‘%s’, 115, ‘delimiter’, ‘,’);
I need to ignore/erase the first two. I find it unpractical to write the 113 %s and the two %*s.
Any ideas?
Then I am thinking on getting the results (below each of the 113 strings) , strings and numbers, to start working on them for statistical analysis (histogram, percent failures, codes, etc). For this data, the first 4 are strings, then f f, then s, f f f ..113th f.
Something like this:
‘%s’‘%s’‘%s’‘%s’‘%f’‘%f’‘%s’‘%f’‘%f’‘%f’‘%f’...‘%f’
I do not want to right down the hole chain, any ideas?
I am attaching the file so you can take a look. The final purpose is to pull each file for every day and not waste time trying to make the summary of the results.
I appreciate your help.
thanks
I am trying to use the textscan command to work a csv file we generate on a test stand.
First I have 115 strings as headers, for this I thought of:
C_text = textscan(fid, ‘%s’, 115, ‘delimiter’, ‘,’);
I need to ignore/erase the first two. I find it unpractical to write the 113 %s and the two %*s.
Any ideas?
Then I am thinking on getting the results (below each of the 113 strings) , strings and numbers, to start working on them for statistical analysis (histogram, percent failures, codes, etc). For this data, the first 4 are strings, then f f, then s, f f f ..113th f.
Something like this:
‘%s’‘%s’‘%s’‘%s’‘%f’‘%f’‘%s’‘%f’‘%f’‘%f’‘%f’...‘%f’
I do not want to right down the hole chain, any ideas?
I am attaching the file so you can take a look. The final purpose is to pull each file for every day and not waste time trying to make the summary of the results.
I appreciate your help.
thanks