matlab ones(size) code example
Example: matlab ones
X = ones(4) % Creates a 4x4 matrix of ones.
X = ones(3,2) % Creates a 3x2 matrix of ones.
X = ones(4) % Creates a 4x4 matrix of ones.
X = ones(3,2) % Creates a 3x2 matrix of ones.