open file with another application

7 ビュー (過去 30 日間)
ahmed ashiry
ahmed ashiry 2015 年 3 月 9 日
回答済み: Image Analyst 2015 年 3 月 14 日
i want open file with an certain application
  1 件のコメント
Jan
Jan 2015 年 3 月 9 日
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?

サインインしてコメントする。

回答 (2 件)

Ortinomax
Ortinomax 2015 年 3 月 9 日
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 件のコメント
Jan
Jan 2015 年 3 月 13 日
The system is more direct than evalc('!'), but the latter might be useful, when catching the outputs matters.

サインインしてコメントする。


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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by