The most common reason that MATLAB will continuously prompt you for activation is that due to limited user permissions, administrator credentials were used to activate. As a result the license file is stored under the administrator account.
Access to the folders where license files are located is required to resolve this issue. With Individual licenses, these files are typically placed in a folder specific to your Login Name on the system. For all other licenses, they will be placed in the licenses folder within the MATLAB installation directory.
To access the directory where your license files are stored, see the appropriate section for your license type and operating system in this article:
If these license folders are empty, the license file was written to the administrator account.
The MATLAB activation client either saved the license file to the administrator account home directory or was unable to write the license file. To resolve the issue, manually activate MATLAB through our website using the instructions below.
How do I activate MATLAB without an internet connection?
Then, place the license file in the following locations depending on your license type:
Designated Computer, Concurrent, Network Named User
*Windows: *C:\Program Files\MATLAB\R20XXx\licenses
Mac: License files are stored inside the MATLAB application package.
Right click, CTRL-click, or two-finger click on the MATLAB icon in your Applications folder and select "Show Package Contents."
In the folder that opens up, open the "licenses" folder to see your license files.
If you have an Individual license type, or DO NOT have write permissions to the directories above, place the license file in these directories.
Mac: /Users/$USER/Library/Application Support/MathWorks/MATLAB/