i have a data file that contains an arbitrary number of independent data sets; the data is in three columns, contains an arbitrary number of rows, and will be processed in MATLAB. the first column contains time values and the other two contain corresponding data. the three sets are concatenated, and each does not necessarily contain the same number of rows, nor do the time values begin or end at the same times. as an example, consider the following matrix with three data sets, as determined by the time ranges in the leftmost column:
0.010 xxx xxx
0.012 xxx xxx
0.014 xxx xxx
0.008 xxx xxx
0.011 xxx xxx
0.013 xxx xxx
0.014 xxx xxx
0.016 xxx xxx
0.009 xxx xxx
0.010 xxx xxx
0.012 xxx xxx
0.015 xxx xxx
where xxx are data values that are unimportant to this exercise, yet they must remain associated with the corresponding time value in the leftmost column. what is the easiest / most efficient way to separate each data set from the others in MATLAB? that is, i want to end up with each set in a separate variable:
var1
0.010 xxx xxx
0.012 xxx xxx
0.014 xxx xxx
var2
0.008 xxx xxx
0.011 xxx xxx
0.013 xxx xxx
0.014 xxx xxx
0.016 xxx xxx
var3
0.009 xxx xxx
0.010 xxx xxx
0.012 xxx xxx
0.015 xxx xxx