You can use the MATLAB adapter to send data to MATLAB, to run commands/scripts, and to retrieve data from MATLAB.
About the MATLAB® Adapter Configuring the MATLAB® Adapter