MATLAB: Fopen / doesnt work with whole file path

filefilepathfopen

Hey Guys, why doesnt fopen work with the whole filepath ?
Does not work
afs/ipp-garching.mpg.de/home/e/e119/MatLabGUI/Prototyp/seth_plots/seth_31050.dat
works perfect
seth_plots/seth_31050.dat
I currently use matlab in the fodler: Prototyp.

Best Answer

That's not the whole file path - it's a relative path. It probably goes off the current folder and you don't have an afs folder in the current folder. Just specify the whole path, starting from the drive letter, or make sure that folder tree structure is contained in the current folder, and you should be fine.