IS_MEX_FUN detect if a function is loaded as MEX or plain .m
function y = is_mex_fun(name) arguments name {mustBeTextScalar} end y = endsWith(which(name), mexext()); end %!testif 0
function y = is_mex_fun(name) arguments name {mustBeTextScalar} end y = endsWith(which(name), mexext()); end %!testif 0