Skip to content

codegen

coder · scripts/coder/codegen.m

CODEGEN  MATLAB Coder compatibility entry point (Nexus)

  codegen (FUNC)
  codegen (FUNC, '-args', {EX1, EX2, ...})
  codegen (FUNC, '-args', {EX1, EX2, ...}, '-o', OUTNAME)
  codegen FUNC -args {EX1, EX2, ...} -o OUTNAME

  FUNC may be a function name (char/string) or a function handle.
  Emits OUTNAME.c / OUTNAME.h stubs and either a real mex (when
  __nexus_codegen_emit_mex__ is available) or an interpreted forwarder .m
  with a helpful message.  Nexus has no C code generator for full AOT yet.

  See also coder.typeof, coder.newtype, coder.extrinsic.