matalloc

Purpose

Allocates a matrix with unspecified contents.

Format

y = matalloc(r, c)
Parameters:
  • r (scalar) – rows.

  • c (scalar) – columns.

Returns:

y (RxC matrix) –

Remarks

The contents are unspecified. This function is used to allocate a matrix that will be written to in sections using indexing or used with the Foreign Language Interface as an output matrix for a function called with dllcall.

See also

Functions matinit(), ones(), zeros(), eye()