How to convert 1x64 uint64 to 1x1 array ?
Show older comments
hello there, I have a 1x64 array which i need to convert into 1x1 array
How to do that ?
4 Comments
Walter Roberson
on 22 Nov 2021
Are you looking for a cell array? Are you looking for a hash function? Does the conversion need to be reversible? Is this something to do with interfacing to other software? Are you trying to create a CRC?
Muhammad Abdulrazek
on 22 Nov 2021
David Hill
on 22 Nov 2021
An example of what you have as input and what you want for the output would be helpful. I am having a hard time understanding your question.
Muhammad Abdulrazek
on 22 Nov 2021
Answers (1)
David Hill
on 22 Nov 2021
a=randi(8,64,1)-1;
n=dec2bin(a,3);
Categories
Find more on Data Type Conversion 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!