Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Dhivya
Posts:
25
Registered:
9/14/13


Reconstruct the original array from a shuflled one
Posted:
Sep 14, 2013 6:24 AM


I have shuffled an array a=[123 0 8 95 0 50 88 170 1 80 0 111 65 0 11 77] according to the index value i=[7 6 9 13 3 2 14 10 8 12 1 11 16 4 15 5] as b=[88 50 1 65 8 0 0 80 170 111 123 0 77 95 11 0] using b=reshape(a(i),[1 16]); Now i need to reconstruct the original array,, Can you help me out??



