#### Creating an Image From Code

lesson

Since an image in MATLAB is just a matrix of numbers, we could write code to fill in the elements of the matrix. Let’s look at some simple examples such as squares, circles and lines and more complex images formed by pasting these shapes together.