Clear/delete out.log-file...

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Stefan Schmid
Posts: 10
Joined: Wed Apr 05, 2017 4:50 am

Clear/delete out.log-file...

Post by Stefan Schmid » Fri Nov 23, 2018 12:40 pm

Hi all

I'm running a list of static optimizations through MATLAB using a for-loop. Is there a way to clear/delete the out.log-file after each iteration?

The following does not work (Error-message: "Warning: File not found or permission denied"):

Thanks for your help!


User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Clear/delete out.log-file...

Post by jimmy d » Sun Nov 25, 2018 10:00 am

The file is being used by OpenSim so you can't delete it from Matlab. You would have shut down Matlab, which closes the instance of OpenSim, before you can delete. Why do you need to delete it after every iteration?