1.把通过邮件得到的lic按照自己对应的目录:C:\Users\WB\Downloads\Mosek\10.1\tools\platform\win64x86\bin
2.命令行窗口输入:setenv('PATH', [getenv('PATH') ';C:\Users\WB\Downloads\Mosek\10.1\tools\platform\win64x86\bin']);
mosekdiag
3.Matlab version : 9.11.0.1769968 (R2021b)
Architecture : PCWIN64
mosekopt path : C:\Users\WB\Downloads\Mosek\10.1\toolbox\r2017a\mosekopt.mexw64
MOSEK version : 10.1.16
Test linear solve: Success
mosekopt works OK. You can use MOSEK in MATLAB.