MATLAB: Error using bitset fuction bitset i have value A=46; i used bitset function to change the second bit ,i get abswer ,but how to change the last 2 bits ,i tried using X=bitset(A,1:2,1); setting last two bits to one please help Best Answer bitset() is not defined to be able to change two bits at a time.bitset(bitset(A, 1, 1), 2, 1) Related SolutionsMATLAB: Bitget() and MSB/LSB Yes. BITGET is not influenced by the endianess of the machine. Therefore bitget(x, 1) and mod(x, 2) are equivalent, if x is a non-negative integer. MATLAB: Bitset error for uint64 Read the documentation of dec2bin, it is written that if number is greater than flintmax then it might not work properly. In your case d is greater than flintmax. Related QuestionDo I need a special license to get access to 64-bit MATLABError using bitget and bitset in arrayMCR: Running a 32-Bit executable on a 64-Bit systemError using “bitset” function for DCT steganography…please help
Best Answer