Assume matrix A1, A2 and A3 as follows:
A1 = [1 10 232 12 453 23 434 32 455 32 32];A2 = [1 43 102 56 113 34 244 43 65];A3 = [1 32 122 22 21];
I want to join all of these matrices into one matrix A according to the unique ID number (first column in every matrix). For example, all row with ID = 1 in all three matrices should written first, then all ID = 2, then all ID = 3, and so on.
A = [1 10 231 43 101 32 122 12 452 56 112 22 213 23 433 34 244 32 454 43 65];
Best Answer