#include <externApps.h> // this file is not included in origin.h
out_str("No Matlab found");
// Matlab object successfully created, i.e. communication established
BOOL bIsKeep = matObj.KeepMatlabRunning;
matObj.KeepMatlabRunning = !bIsKeep;
Controls if Origin should keep Matlab session alive after closing the connection. When Origin exits, Matlab session created by Origin, or Matlab session started prior to Origin one, with command line: Matlab /Automation, will close.