releasing a file in matlab

15 views (last 30 days)
Cyros
Cyros on 11 Jul 2014
Commented: gotjen on 5 May 2021
hello,
after edititng a test.txt file in matlab i want to rename it with {! ren tes.txt test1.txt}. this is not working cause test.txt still open in matlab... whats the solution? thanks cyros

Answers (3)

Cyros
Cyros on 14 Jul 2014
thanks to all, i solved it with
if true
fclose('all')
end
cyros
  1 Comment
gotjen
gotjen on 5 May 2021
Thank you, this is what I was looking for.

Sign in to comment.


Jan
Jan on 13 Jul 2014
According to dpd's comment:
Close the file in the editor.

Star Strider
Star Strider on 13 Jul 2014
Save it as test1.txt, close test.txt, then delete test.txt. You can probably do that without closing the MATLAB Editor.

Categories

Find more on Biological and Health Sciences in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!