在Windows上文件名通配符匹配与多个点

8视图(30天)
fclose (fopen (“myfile.txt”,' w '));
fclose (fopen (“myfile.txt.1”,' w '));
dir (‘* . txt。*)
将匹配”myfile。txt”和“myfile.txt。1" on Windows to my surprise.
有办法只有“myfile.txt.1”?
有一个类似的帖子
但这并没有帮助我

答案(1)

1月
1月 2022年6月3日
列表= dir (‘* . txt。*)
列表=(包含({List.name},. txt。))

类别

找到更多的在数据导入与分析帮助中心文件交换

标签

s manbetx 845


释放

R2020b

社区寻宝

找到宝藏在MATLAB中央,发现社区如何帮助你!

开始狩猎!