open file with another application

7 visualizzazioni (ultimi 30 giorni)
ahmed ashiry
ahmed ashiry il 9 Mar 2015
Risposto: Image Analyst il 14 Mar 2015
i want open file with an certain application
  1 Commento
Jan
Jan il 9 Mar 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?

Accedi per commentare.

Risposte (2)

Ortinomax
Ortinomax il 9 Mar 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 Commento
Jan
Jan il 13 Mar 2015
The system is more direct than evalc('!'), but the latter might be useful, when catching the outputs matters.

Accedi per commentare.


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

Categorie

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

Community Treasure Hunt

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

Start Hunting!

Translated by