opening a picture (.bmp) outside MATLAB
8 次查看(过去 30 天)
显示 更早的评论
There is a picture in a special Folder. With which command we can open it outside MATLAB (with Paint or Windows Picture viewer)?
0 个评论
回答(3 个)
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ActiveX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!