Check whether mex file is compiled for system
Updated 5 May 2018
NOTE: this function is now available from the IoSR Matlab Toolbox as iosr.general.checkMexCompiled.
CHECK_MEX_COMPILED Check if mex file is compiled for system.
CHECK_MEX_COMPILED(SOURCE_FILE) checks whether a mex source file SOURCE_FILE is compiled for the current operating system OR whether the source file has been modified since it was compiled. It is compiled if it does not pass these tests (to the same directory as the source file). SOURCE_FILE must be a string that is the name of a source file on the MATLAB search path.
CHECK_MEX_COMPILED(OPTIONS,SOURCE_FILE) passes the script switches in OPTIONS to the mex compiler, one argument per switch.
% check function compiled, with useful debugging info,
% and with large-array-handling API
Christopher Hummersone (2022). Check whether mex file is compiled for system (https://github.com/IoSR-Surrey/MatlabToolbox), GitHub. 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!