Creating a structure array containing names of external files
1 次查看(过去 30 天)
显示 更早的评论
Good day , how can I create a function that will receive a structure array containing the names of the external files that will be read in separate field ?
2 个评论
采纳的回答
Bob Thompson
2019-5-1
files = dir(path);
This will return a structure called 'files' which contains the names of all files in the path location (and other information). To call the specific file you want just do files(index).name.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!