Matlab-rmdir函数无法删除文件夹解决方案_错误使用 rmdir 未删除任何目录-CSDN博客 (2024)

最新推荐文章于2022-08-28 19:33:12发布

分类专栏: matlab

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

filepath='xdc/xdef/xe'rmdir(filepath)

报如下错误
Matlab-rmdir函数无法删除文件夹解决方案_错误使用 rmdir 未删除任何目录-CSDN博客 (6)
大概率是因为没有操作权限,所以使用下面的代码即可:

filepath='xdc/xdef/xe';rmdir(filepath,'s’);

注意,s慎用,确认自己真的要删除某个文件之后再用s删除。

Matlab-rmdir函数无法删除文件夹解决方案_错误使用 rmdir 未删除任何目录-CSDN博客 (2024)

References

Top Articles
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6039

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.