matlab ones command code example Example: ones matlab X = ones(1,3,'uint16'), X = 1x3 uint16 row vector 1 1 1