imwrite matlab code example Example: matlab load image % Reads image im = imread('image.jpg'); % Displays image image(invert)