MATLAB: How to convert a binary code to image binary I want to convert binary code like 0 1 1 0 1 0 1 0 1 1 to a binary image. Can it be done? please help? Best Answer b = [0 1 1 0 1 0 1 0 1 1];image(logical(b));colormap(gray(2)) Related SolutionsMATLAB: Decimal to Binary Conversion E.g.,bstream = reshape(b',1,[]);If you want characters, thenbstream = char(reshape(b',1,[]) + '0'); MATLAB: Array of 1 and 0 to decimal B = bin2dec(char(A + '0'))B = 147 15 170 Related Question
Best Answer