Connecting to an open Matlab workspace
Cameo Simulation Toolkit can connect to an existing open Matlab workspace instead of starting a new one, if needed.
Simply share it from the Matlab side first, by running ">> matlab.engine.shareEngine"
CST will be able to access any variables defined in that workspace, in addition to a SysML model context.