Datastore function can't find files

조회 수: 8 (최근 30일)
Yuliano Moscoso Yarin
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.
  댓글 수: 2
Dushsyant K Rajamohan
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
Walter Roberson
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
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 CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by