Robin skrev: > So far the only remotely tricky thing I did was redirect sys.stdout > and sys.stderr to a wrapper that uses mexPrintf so output goes to the > matlab console. > Be careful when you are using file handles. You have to be sure that Matlab, Python and NumPy are all linked against the same CRT. Sturla