Check out example codes for "matlab load image". It will help you in understanding the concepts better.

Code Example 1

% Reads image
im = imread('image.jpg');

% Displays image
image(invert)

Learn ReactJs, React Native from akashmittal.com