如何获取包含 Octave 中目录内容的数组?
How to get an array with the contents of a directory in Octave?
如何在 Octave 中获取包含 XML 个文件的目录的内容并将文件名存储在数组中?
有dir
、ls
、readdir
和glob
。如果你想搜索一个模式,我会建议 glob:
fns = glob ("*.xlm");
这将 return 具有相对(pwd
)文件名的元胞数组。
如何在 Octave 中获取包含 XML 个文件的目录的内容并将文件名存储在数组中?
有dir
、ls
、readdir
和glob
。如果你想搜索一个模式,我会建议 glob:
fns = glob ("*.xlm");
这将 return 具有相对(pwd
)文件名的元胞数组。