Calq commands and keywords


setsize(array, rows, columns)


Sets the size (number of elements in rows and columns) of the result for the values passed in the first argument.


  a = 1:9;
  b = setsize(a, 3, 3);
  % b is now a 3x3 matrix, whereas a is 1x9

See also

length. size. reshape (which does the same thing).

What is Calq?
Latest version of Calq
Digital Wave Systems Lab homepage