MATLAB® with the MASTA API
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 10.0.1 RLM x64/';
NET.addAssembly(strcat(mastaDirectory, 'MastaAPI.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.