Setup
The following lines of MATLAB® code will load the MASTA API libraries into your MATLAB® session, so that API objects and methods are available to your scripts.
% Update this line to point to your MASTA installation
mastaDirectory = 'C:/Program Files/SMT/MASTA 13.0 RLM x64/';
setenv MKL_THREADING_LAYER sequential
NET.addAssembly(strcat(mastaDirectory, 'SMT.MastaAPI.13.0.dll'));
SMT.MastaAPI.UtilityMethods.InitialiseApiAccess(mastaDirectory);
These lines should be placed in a separate MATLAB® script file, which must be called at the start of any custom scripts which use the MASTA API. It should also be run before attempting to use the API in the MATLAB® Command Window.