Dir function gives nothing
古いコメントを表示
I am using Dir function to find the specific files that have cell in their names but it retunrs nothing although cell files are existing in that folder. Here is the code:
selpath = uigetdir;
struct = dir([selpath '*cell*.json']);
and here is the sample image of the folder:

2 件のコメント
Stephen23
2019 年 11 月 16 日
Concatenating strings to create the filename is the problem.
Use fullfile instead, your code will work fine.
Zeynab Mousavikhamene
2019 年 11 月 16 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!