https://nl.mathworks.com/help/compiler/isdeployed.html
isdeployed - Determine whether code is running in deployed or MATLAB mode - MATLAB
This MATLAB function returns logical 1 (true) when the function is running in deployed mode using MATLAB Runtime and 0 (false) if it is running in a MATLAB...
running indeterminewhethercode