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!