Load compiled matlab script in stan

Is it possible to load a Matlab script as a function with parameter inputs to the stan script? I have a PDE Solver written in matlab and want to use this as my model without writing it in stan. The goal is to input the model parameters I want to infer, have MATLAB produce a solution matrix, and output the solution matrix in stan.

Thanks in advanced,