Hi Mohana,
In regard to error code -7 which you have specified, following response by MathWorks Support Team could be helpful: https://in.mathworks.com/matlabcentral/answers/216384-why-do-i-receive-license-manager-error-7#answer_178825
As stated in the attached reference, Error -7 is caused by running a new release of MATLAB using a network license that has not had the network license manager updated yet. A license administrator will need to update the license manager running on the designated license server to resolve this issue.
Kindly refer to above provided link for further details.