Why can't I move or delete files which are imported using Python commands in MATLAB in 'OutOfProcess' mode?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 22 Sep 2020
Answered: MathWorks Support Team
on 22 Sep 2020
I am using 'OutOfProcess' to execute a sequence of Python commands including reading some files in MATLAB.
Why can't I move or delete files which are imported using Python commands in MATLAB in 'OutOfProcess' mode?
Accepted Answer
MathWorks Support Team
on 22 Sep 2020
When executing Python commands including reading files in 'OutOfProcess' mode in MATLAB, the files remain open in a separately running Python process and need to be closed explicitly in Python using the 'close()' command in order to be able to move or delete them.
0 Comments
More Answers (0)
See Also
Categories
Find more on Call Python from MATLAB 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!