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

Code Example 1

X = ones(4) % Creates a 4x4 matrix of ones.

X = ones(3,2) % Creates a 3x2 matrix of ones.

Learn ReactJs, React Native from akashmittal.com