https://in.mathworks.com/help/coder/ref/coder.buildconfig.iscodegentarget.html
coder.BuildConfig.isCodeGenTarget - Determine if build context represents specified target - MATLAB
This MATLAB function checks if the code generation target of the build context bldcfg represents the code generation target specified by target.
coderdetermine