Calling another program
8 次查看(过去 30 天)
显示 更早的评论
Can anyone tell me whether I can call another program and extract data from another program while running MATLAB? Your answer will be appreciated!!
I using MATLAB for image processing. I need to pass a command to different program for getting an image data..
0 个评论
回答(2 个)
Bjorn Gustavsson
2011-11-1
You could start with the "system" command:
[status,result] = system('program arguments');
If you need more complex interaction you could take a look on pipes and other solutions, see for example this thread: http://www.mathworks.co.uk/matlabcentral/answers/12913-can-i-give-matlab-commands-in-series-from-the-os-command-prompt
0 个评论
Jonas Reber
2011-11-1
you might be looking for
system('command')
[status, result] = system('command')
[status,result] = system('command','-echo')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!