Have you ever wanted to call the engCallMATLAB function, only to realize that it isn't available? Well, now it is! This c routine mimics the functionality of the mexCallMATLAB function, but for engine applications. Has the same argument list as mexCallMATLAB with the addition of the Engine pointer. The routine works by putting all input variables into the MATLAB engine workspace, calling engEvalString to evaluate the function in the MATLAB engine workspace, and then getting the result variables from the MATLAB engine workspace back into your c code. Cleans up after itself. Included in the zip file are a working driver example program, a compile file for lcc on win32, and a help file.
James Tursa (2022). engCallMATLAB (https://www.mathworks.com/matlabcentral/fileexchange/17494-engcallmatlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!