Remote Desktop MATLAB fails to start problem solving

Blog: blog park | CSDN | Blog

Remote Desktop open MATLAB will complain, the solution is to open the path matlab licenses, such as matlab/R2017b/licenses/, there license file path, such as license_standalone.lic(possibly other names), open the file, add the following line at each location TS_OK.

matlab license

The number of rows more, by performing the following pythonautomatically add the script, note that the first backup before performing

license_path = './license_standalone.lic'

with open(license_path, 'r') as fr:
    lines = fr.readlines()

with open(license_path, 'w') as fw:
    for i, line in enumerate(lines):
        if (line[-2] == '\\'):
            continue
        lines[i] = line[:-2] + ' TS_OK\n'
    fw.writelines(lines)

Remote start and then you can succeed.

reference

Guess you like

Origin www.cnblogs.com/shine-lee/p/12039940.html