开发者

How to open paint through MATLAB?

开发者 https://www.devze.com 2023-02-22 13:50 出处:网络
Is 开发者_运维知识库there a way through which we can open MS Paint from MATLAB?try this system(\'mspaint\');

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

精彩评论

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