在Matlab中处理具有特定扩展名的文件列表 [英] process a list of files with a specific extension name in matlab

查看:64
本文介绍了在Matlab中处理具有特定扩展名的文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何处理文件夹中所有扩展名为".xyz"的文件?基本思想是我想要一个文件名列表,然后一个for循环来加载每个文件.

How can I process all the files with ".xyz" extension in a folder? The basic idea is that I want a list of file names and then a for loop to load each file.

推荐答案

使用 dir() 以获得文件名列表.您可以指定通配符.

Use dir() to obtain a list of filenames. You can specify wildcards.

这篇关于在Matlab中处理具有特定扩展名的文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆