Enveloping a MATLAB application

In order to envelop a MATLAB application, always change the subsystem/target to console. If the target is not “Console Application” then the “Background Check” option in envelop does not work which means that even if you remove the dongle then also the protected application keeps on running without any error message.