Run command-line type external software within a .m matlab
2 次查看(过去 30 天)
显示 更早的评论
Hi
Is there a way to pass a series of instructions to an external program in a matlab .m script ? It looks like
! appli code
will run the appli program with a first instruction code
What is the syntax to pass along the carriage return and another instruction to further select options for appli ?
3 个评论
dpb
2014-5-1
Unless one of the options is to switch to file input, that's probably not going to happen successfully.
There are ways (or at least there were w/ DOS) to simulate keypresses but those have pretty much gone the way of the dodo bird w/ later releases.
It's possible to build interactive shells around such with Tcl as the glue or similar.
采纳的回答
更多回答(1 个)
Image Analyst
2014-5-1
I think maybe people have used the java robot for that, but I'm not sure. If the program is ActiveX capable, you can use ActiveX.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ActiveX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!