how to arrange data into array
4 views (last 30 days)
i have imported some matrix data into matlab and upon parsing the data i have it in 3 vectors (columns):
column 1 are the row indices (i.e.):
column 2 are the column indices (i.e.):
and column 3 are the values in the matrix associated with those indices (i.e.):
I'd like to arrange this into a single 2-D array of column 3 data in the row locations of column1, and column locations of column2
I could do this with a loop, but im hoping to find a more elegant / less time intensive solution. I have about a million datapoints.