
Datastore function can't find files
    5 次查看(过去 30 天)
  
       显示 更早的评论
    
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
 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

  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 中查找有关 Startup and Shutdown 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!