Answers for "ones matlab"

6

matlab ones

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

X = ones(3,2) % Creates a 3x2 matrix of ones.
Posted by: Guest on March-30-2020
0

ones matlab

X = ones(1,3,'uint16'),

X = 1x3 uint16 row vector

   1   1   1
Posted by: Guest on November-14-2020

Browse Popular Code Answers by Language