Skip to content

nexus_py_encode

matlab_compat · scripts/matlab_compat/nexus_py_encode.m

NEXUS_PY_ENCODE  Tagged JSON node for a MATLAB value sent to nexus_py_call.py.

 Internal helper for the py.* and pyrunfile transport (nexus#2364).  The
 node format is documented at the top of nexus_py_call.py.  Conversion
 follows MATLAB R2026a: scalar double -> float, scalar integer -> int,
 scalar logical -> bool, char row / string scalar -> str, cell -> tuple,
 scalar struct -> dict, other numeric/logical arrays -> array.