![urgent.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/250434/urgent.jpeg)
Datastore function can't find files
4 ビュー (過去 30 日間)
古いコメントを表示
Yuliano Moscoso Yarin
2019 年 10 月 12 日
コメント済み: Walter Roberson
2019 年 11 月 26 日
Hello there ,
I trying to run the datastore function on macOS but I'm getting this " Cannot find files or folders matching" error , the curious thing is the same code run without any problem on Windows 10.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/242294/image.png)
2 件のコメント
Dushsyant K Rajamohan
2019 年 11 月 26 日
Hey there,
I believe im trying to run the same code as yours,unfortunately the term 'variableNames" are not detected,may I know why and how can I solve it? Thank you
![urgent.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/250434/urgent.jpeg)
Walter Roberson
2019 年 11 月 26 日
variableNames should be set to a cell array of character vectors that is the names of the variables you want to extract from the csv file. If the csv file has a header, the variable names correspond to the header elements. If the csv file has no header, then the variable names are Var followed by a column number.
採用された回答
Walter Roberson
2019 年 10 月 12 日
MacOS and Linux do not use \ as directory separators. You should be using fullfile()
files = fullfile(pwd, 'Data', [filenames '.csv']);
その他の回答 (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!