MATLAB: Matlab code image processingmatrix hiii i need a matlab code on how to view a matrix as an image ???? we have a matrix and i need to view it as image Best Answer Hi,You can use imagesc command from MatlabA = [ 0 1 1 1 0; 0 1 1 1 0; 0 0 1 0 0; 0 0 1 0 0; 1 1 1 1 1; 0 0 1 0 0; 0 0 1 0 0; 0 1 1 1 0; 1 0 0 0 1];imagesc(A); colormap(gray);axis square; Related SolutionsMATLAB: How to split an binary image into binary bit sequence For an image, it's the same concept - you can still use linear indexing like that if you want, or you can use 2D indexing if you want:subImage = fullSizeBinaryImage(row1:row2, column1:column2); MATLAB: How to convert a binary code to image b = [0 1 1 0 1 0 1 0 1 1];image(logical(b));colormap(gray(2)) Related QuestionSignal in and signal out need to be shifted to match one another…How to create bpm file sequentially using imwrite, changing the name of the file created each timeCreating a Matrix including ones on diagonal
Best Answer