how i can again get the original digits,without knowing the length of the original digits.
Show older comments
hello all my friends, i was using mod for grouping binary data in multiple groups according to mod 12. the size of my original data was 146 digits, when i applied mod 12 i obtained 13 groups and each group contains 12 elements by appending extra zeros when there is a remainder, 146 digits mod 12 there will remainder which are 2 digits and i completed by adding 10 extra zeros to obtain 13'th group which means 156 digits. so how i can again get the original digits,without knowing the length of the original digits.
3 Comments
Guillaume
on 19 May 2015
Please show an example of what you have and what you want. Your description is really not clear. 'according to mod 12' does not mean anything, nor does 'applying mod 12'. The modulo operation does not group anything, it merely transforms a single number into another number.
Mohamuud hassan
on 19 May 2015
Edited: Mohamuud hassan
on 19 May 2015
John D'Errico
on 19 May 2015
You are not listening. You cannot do so. Impossible is impossible.
Accepted Answer
More Answers (1)
You can't, obviously. If you append data and do not store anywhere the number of added data, there is no chance to obtain this information anymore.
The solution is to store the number of original bits separately.
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!