Hey! Happy Easter folks!
I've been searching two days for an answer to this problem but couldn't figure out yet; there's tons of advise but I have to figure out the best approach for my particular case.
My data set looks like this:
Time 2012/02/13 00:02:00.000; <<- ALL this is in one cell........place, 1, 2, 9;item, 11, 14, 18, 21, 22, 24, 27, 31, 32;value, 724, 1454, 344, 2449, 1683, 197, 463, 2750, 175;increase, -182, 175, 704, 408, 199, 208, 626, 154, 363;Time 2012/02/18 00:00:00.000;place, 1, 2, 5;item, 11, 18, 22, 27, 32;value, 2913, 1061, 3365, 2703, 3337;increase, -624, -862, -820, -596, -505;
(just on here, columns are separated by comma and rows are separated by semicolon)
maximum number of items 32 (i.e., there could be 32 columns of data)
I need to plot Time (X axis) against value (Y axis) for each item.
Problem I am having with "load"/"fopen"/"strmatch"/"xlsread" is I can't specify a column for an item because it varies through the data (for e.g., item 18 above).
For each time the data is collected I need to plot the value of each item. How do I approach getting Matlab to separate this data for me?
Also I was having trouble assigning the single cell containing both characters and numbers as the X value (Time …).
How should I approach this problem?
appreciate your time!
Best Answer