Open .pdf file from compiled Matlab gui in MacOS
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    abaza
 am 24 Mai 2020
  
    
    
    
    
    Beantwortet: Matt Cooper
      
 am 15 Feb. 2022
            Dear all,
I tried everything in order to open a pdf file (as a guide) in  agui platform that i prepared but I cannot!
Namely, I added pdf in the files to be compiled, I changed the commands from:
1) open
2) macopen
3) web()
AND everytime the pdf is opened by the NON-compiled GUI from matlab, whereas the standalone app (I added it as a push button function) doesn't respond...
Does anyone have a solution for the MacOS?
0 Kommentare
Akzeptierte Antwort
  Matt Cooper
      
 am 15 Feb. 2022
        You can use the system command:
filename    = char('some_file.pdf');
system(['open ' filename])
This should open the file in the default system pdf viewer.
0 Kommentare
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!

