Check out example codes for "normalise 1 matrix matlab". It will help you in understanding the concepts better.

Code Example 1

normA = A - min(A(:))
normA = normA ./ max(normA(:)) %

Learn ReactJs, React Native from akashmittal.com