How to convert 1x64 uint64 to 1x1 array ?

hello there, I have a 1x64 array which i need to convert into 1x1 array
How to do that ?

4 Comments

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?
sorry maybe i couldnt ask the question in a right way
i have an image which i need to extract one row from it & split it into two halfs then compine every halfs into a single string
this image is 128 x 128
i succesfully extracted that row , and splitted it into two 1x64 arrays
i need now to append all these elements into a single string to do some processing on it
note : every element of 1x64 array have 3bits in it
how to compine those element into one string & what data type can hold 64*3=192 bit ?
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.
the input is a normal grey scale image 128x128 uint8
1 ) i extracted one row from it 1x128
2) splitted this row into two equal halfs 1x64 note : every element has 3 bits in it
3) the output should be one string which have 192="64x3" char in it

Sign in to comment.

Categories

Products

Release

R2016a

Asked:

on 22 Nov 2021

Answered:

on 22 Nov 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!