open file with another application

조회 수: 4 (최근 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 CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by