in reply to Converting Arrays into Matrix
Have you tried to sort your vectors before combining them? That should solve your issue ... (being a kind of the "look forward" you were asking for)
HTH, Rata
Update: Sorting (of course) changes the order of the elements (that made the proposed solution so elegant ;-) ... when proposing it I wasn't aware of a requirement to preserve the order ... so with the clarification below the simple solution won't work ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting Arrays into Matrix
by janDD (Acolyte) on Apr 26, 2011 at 07:15 UTC |