Skip to content

coder.newtype

coder · scripts/+coder/newtype.m

NEWTYPE  MATLAB Coder compatibility: type descriptor for codegen -args

  T = coder.newtype (CLASS, SIZE [, VARDIMS]) returns a struct with the
  fields ClassName, SizeVector, VariableDims and Complex.  Nexus has no
  code generator; codegen accepts and ignores it, and the descriptor can
  be inspected or turned into an example value by coder.typeof users.

  See also coder.typeof, codegen.