open output as a text file upon completion of analysis

2 visualizzazioni (ultimi 30 giorni)
I have written a MATLAB code that generates the output in a new file. Rite now am building a GUI and I would like to include a option in GUI that would open the output file in one click i.e., the user need not go to the directory and manually open it. How should I go abt this??

Risposta accettata

Robert Cumming
Robert Cumming il 21 Feb 2011
you could use a system command to open it in notepad for example:
command = sprintf ( 'notepad %s', fullpathOfYourFile );
system ( command )

Più risposte (0)

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by