open file with another application

15 Ansichten (letzte 30 Tage)
ahmed ashiry
ahmed ashiry am 9 Mär. 2015
Beantwortet: Image Analyst am 14 Mär. 2015
i want open file with an certain application
  1 Kommentar
Jan
Jan am 9 Mär. 2015
So why don't you directly open the file with this application? What is your question? What have you tried so far and which problem occur? Which application are you talking of?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Ortinomax
Ortinomax am 9 Mär. 2015
You can use the winopen function on windows to open the file in the default application for this file.
Another way could be tu use something like :
evalc(['!explorer ' my_dir_name_full]);
  1 Kommentar
Jan
Jan am 13 Mär. 2015
The system is more direct than evalc('!'), but the latter might be useful, when catching the outputs matters.

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 14 Mär. 2015
You can use system() or winopen() if you're using Windows. For example
winopen(excelFullFileName) % Launch Excel opened to this workbook.

Kategorien

Mehr zu Environment and Settings 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!

Translated by