-3

I stumble across some MATLAB codes about data file paths, something like:

data=csvread(sprintf('../data/cdflevel%dtable.csv',cdflevels(i)));

I am not sure what '../' does. Anyone can explain it?

jingweimo
  • 4,472
  • 8
  • 41
  • 69

1 Answers1

1

../ moves one folder up from the current directory, before then changing to the data directory in the parent folder. It's not specific to MATLAB, just a standard way of navigating a file system.

gnovice
  • 124,379
  • 14
  • 254
  • 355