Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Reconstruct the original array from a shuflled one
Replies: 2   Last Post: Sep 21, 2013 3:22 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dhivya

Posts: 24
Registered: 9/14/13
Reconstruct the original array from a shuflled one
Posted: Sep 14, 2013 6:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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??



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.