You can combine duplicated rows of a matrix by using the unique function with the rows option. Here's an example:
main.m421 chars19 lines
In this example, the rows with the same date appear twice or three times. We use unique to combine the duplicated rows while keeping the order of the original matrix. The resulting matrix unique_data has five rows instead of six.
gistlibby LogSnag