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"):
fclose('all')
delete('out.log')
Thanks for your help!
-Stefan
Clear/delete out.log-file...
- Stefan Schmid
- Posts: 10
- Joined: Wed Apr 05, 2017 4:50 am
Re: Clear/delete out.log-file...
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?