open output as a text file upon completion of analysis

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

 채택된 답변

Robert Cumming
Robert Cumming 2011년 2월 21일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

질문:

Ram
2011년 2월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by