-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?

jwm
  • 4,832
  • 10
  • 46
  • 78

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
  • 125,304
  • 15
  • 256
  • 359