licence_guard
- :
tf =licence_guard(toolbox)¶ - :
tf =licence_guard(toolbox, opts)¶ Decide whether a toolbox may be used in this session.
Interactive Nexus sessions require a per-user entitlement for each separately licensed toolbox (environment variable or ~/.config/nexus/licenses/<toolbox>.lic). MATLAB Compiler packaged apps do not: toolboxes bundled at package time are available without a per-user checkout. Nexus matches that rule when
NEXUS_DEPLOYEDis set to a truthy value ("1","true","yes", or"on").When deployed:
- If
NEXUS_BUNDLED_TOOLBOXESis unset or empty, every toolbox id is granted (the packager decided what to ship; runtime skips the guard). - If
NEXUS_BUNDLED_TOOLBOXESis a comma-separated list, only those ids (case-insensitive) are granted.
NEXUS_DEPLOYED=0forces the interactive check even if other deploy markers are present.NEXUS_NO_LICENSE_CHECKgrants every toolbox in both modes (existing Deep Learning toolbox convention).toolbox is a character row (or scalar string / 1-element cell). Non-char or empty ids return false without error (same shape as
license ("test", feature)for unknown features).- If