I am using Win10, Matlab 2021a.
I activate my license using an external tool which works fine.
Then I want to check the license status using Matlab. However, the function
status = calllib('LexActivator','IsLicenseGenuine');
returns ‘1’, which means the license check failed. Only after I run
status = calllib('LexActivator','SetLicenseKey', toString(sLicenseKey));
status = calllib('LexActivator','ActivateLicense');
the check
status = calllib('LexActivator','IsLicenseGenuine');
returns the correct value. So it seems as if the external activation does not have an effect for Matlab.
How can I debug this?