Matlab crashes during optimization and other function calls: trouble shooting

27 Apr

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”.


Leave a comment

Posted by on April 27, 2010 in Maths, Programming


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: