Check out example codes for "matlab reduce resolution of image". It will help you in understanding the concepts better.
Code Example 1
outputImage = imresize(inputImage, [numOutputRows, numOutputColumns]);
Learn ReactJs, React Native from akashmittal.com