C# + MATLAB报错信息


在昨天浪费了很多时间理清了报错:的几个可能性之后,在我要重新封装.m文件时,出现了下面这个报错:

依旧是各种查,但是百度的时候发现大家一般都是在java中,遇到java.lang.NullPointerException的。后来去math works里查到了有帮助的想法,简单整理一下:

  • https://ww2.mathworks.cn/matlabcentral/answers/217765-why-does-matlab-hang-at-splash-screen-and-give-failed-to-load-nativecmdwin-library-no-nativecmdwin
    This issue is related to a recent virus definition update that may corrupt some of MATLAB's internal files.Reinstalling MATLAB should resolve the problem, as it will restore the file which Avast has removed.
  • https://ww2.mathworks.cn/matlabcentral/answers/131519-how-do-i-perform-a-clean-installation-of-matlab-on-a-windows-system