开发者

How to open paint through MATLAB?

Is 开发者_运维知识库there a way through which we can open MS Paint from MATLAB?


try this

system('mspaint');

if you want to open a specific file then build up the string with the correct filename


try

winopen('image.bmp')

or try

help system
help dos
help unix


If you want to open MS Paint and immediately return control to MATLAB (i.e. MATLAB won't wait for the program to be closed), then you can issue a command to the operating system using the bang operator ! like so:

!mspaint &

Or you could use the SYSTEM command as mor22 suggested with & added to the end of the string:

system('mspaint &');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜