I need to import a text file into matlab and convert it into binary. The final array that contains the binary values has to be in some integer or double format and not character format. I tried using dec2bin, but by using dec2bin the format changes to character. How can I convert ascii values to binary and make it stay as integer values?
MATLAB: How to convert text file to binary so that the final array is of integer or double format
asciibinarytext;
Related Question
- How to convert a negative integer to a binary string, in other words, how can I find Two’s Complement in MATLAB
- Binary Bit Masking
- Sir, I want to convert hex string to hex, and convert to int16.
- Bitset error for uint64
- Changing data type without changing bits
- I have an array of length 256. It has either 0’s and 1’s of type uint8. I would like to concatenate it so that it occupies less memory and then recover the original array back. please check the eaxample
Best Answer