MATLAB (Matrix Laboratory) is a computing environment often used in academic research. It is a powerful tool for performing all kinds of mathematical analyses and manipulations of matrices. A digital picture is represented in a computer as a matrix, with various matrix elements specifying different properties of each pixel in the picture. Since a digital picture is stored as a matrix, you can open it with MATLAB to analyze and manipulate the picture as a matrix of numbers. [picture,picturecolors] = imread(’example.jpg’); [picture,picturecolors,picturetrans] = imread(’example.jpg’); Writer Bio

How to Convert a Picture to a Matrix by MATLAB - 21