Skip to content

nexus_prepare_for_mat_save

table · scripts/table/nexus_prepare_for_mat_save.m

NEXUS_PREPARE_FOR_MAT_SAVE  Walk values before MAT save without flattening objects.

  Classdef objects (table, categorical, duration, containers.Map, and plain
  classdef values) are written by the MAT subsystem in MATLAB's MCOS layout.
  Flattening a table here is what made MATLAB load a Nexus -v7.3 file as a
  struct of columns.  Cells and structs are still walked so a nested object
  is left as an object too.

  A struct-shaped table (not a classdef) is left for an optional toolbox
  mat_save_normalize hook.  With no hook registered it is unchanged.