In programming Matlab, suddenly it crashes. Face it.
One of the occasion is when I call the norm function programmatically. In the interactive command window, there is no problem, but if you use it in script. Sorry, it just crashes, with a console window disappeared before you have time to read the details.
After Google searching, here is the solution, and it worked for me at least: add a system variable “KMP_DUPLICATE_LIB_OK” with its value set to “TRUE”.