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