Tuesday, April 6, 2010

Matlab: Clear and Rehash

I'm having some problems with the new single-session Matlab solution Im using for my experiments. For some reason, random errors seem to pop up here and there. Variables that should be defined are not found by Matlab.

At first, I thought its a time sync issue, so I added some pause(n) statements here and there. This helped a bit but did not eliminate the problem. I later realized that it could be the variable definitions. So now, at the start of every iteration, I cleared my variables (I probably should have done this to begin with). Unfortunately, this does not solve the problem either.

Later I realized that it could be a problem with the path. So now I also issue a rehash path command.

That should do it.

No comments:

Post a Comment