MATLAB Answers

0

Datastore function can't find files

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.

  0 Comments

Sign in to comment.

Products


Release

R2019b

1 Answer

Answer by Walter Roberson
on 12 Oct 2019
 Accepted Answer

MacOS and Linux do not use \ as directory separators. You should be using fullfile()
files = fullfile(pwd, 'Data', [filenames '.csv']);

  1 Comment

You're right, thank you.

Sign in to comment.