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

Code Example 1

% MATLAB
yourImage(:,end:-1:1,:);

Learn ReactJs, React Native from akashmittal.com