fopen / doesnt work with whole file path ?
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Max Müller
      
 am 27 Sep. 2014
  
    
    
    
    
    Kommentiert: Image Analyst
      
      
 am 27 Sep. 2014
            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.
0 Kommentare
Akzeptierte Antwort
  Image Analyst
      
      
 am 27 Sep. 2014
        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.
3 Kommentare
  Image Analyst
      
      
 am 27 Sep. 2014
				Try this snippet:
% Get the name of the file that the user wants to save.
% Note, if you're saving an image you can use imsave() instead of uiputfile().
startingFolder = userpath
defaultFileName = fullfile(startingFolder, '*.*');
[baseFileName, folder] = uiputfile(defaultFileName, 'Specify a file');
if baseFileName == 0
  % User clicked the Cancel button.
  return;
end
fullFileName = fullfile(folder, baseFileName)
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!