toolboxdir
matlab_compat · scripts/matlab_compat/toolboxdir.m
TOOLBOXDIR Path to a toolbox folder under matlabroot (#821).
P = TOOLBOXDIR(NAME) returns fullfile(matlabroot,'toolbox',NAME) when
that directory exists. Matches MATLAB R2026a layout relative to the
running product root (Nexus: /usr/local/nexus; MATLAB: .../R2026a).
For the core language name 'matlab', also accepts the installed
share/.../m script tree when toolbox/matlab is not present on disk.
Errors with MATLAB:toolboxdir:DirectoryNotFound when no matching
directory exists (same message shape as MATLAB R2026a).