opening a picture (.bmp) outside MATLAB

조회 수: 7 (최근 30일)
mohammad
mohammad 2012년 8월 2일
댓글: Image Analyst 2014년 4월 24일
There is a picture in a special Folder. With which command we can open it outside MATLAB (with Paint or Windows Picture viewer)?

답변 (3개)

Image Analyst
Image Analyst 2012년 8월 2일
편집: Image Analyst 2012년 8월 2일
If you want to specify a document (rather than a program), and open the document with the default program that Windows opens those kinds of documents with, then use winopen(). It should be just like you double clicked on the file's icon.
If you want to pass in a document to a program on the command line, then you can use dos() or system(). For examples, (1) you wanted to open an image in Photoshop rather than MSPaint or Picture and Fax Viewer (or whatever your default image program is), or (2) say you want to open a text file in wordpad, rather than the default notepad that would open the file if you used winopen(). I have an example for system() if you need to do it that way.
  댓글 수: 1
mohammad
mohammad 2012년 8월 3일
Thanks. Yes I need open a picture with Photoshop (not with default program). Please tell me how I could do this.

댓글을 달려면 로그인하십시오.


Sumit Tandon
Sumit Tandon 2012년 8월 2일
Use the WINOPEN command.

v@ishu
v@ishu 2014년 4월 24일
what if i have to use the image in further commands and not just open it??
  댓글 수: 1
Image Analyst
Image Analyst 2014년 4월 24일
You'd have to use ActiveX or maybe java robot to control the other program.

댓글을 달려면 로그인하십시오.

카테고리

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