Robuta

https://www.mathworks.com/help/matlab/apiref/mexislocked.html mexIsLocked (C and Fortran) - Determine if MEX file is locked - MATLAB Call mexIsLocked to determine if the MEX file is locked. c and fortranmex filedetermine