running an executable in "MS-Windows command window" from MATLAB
2 次查看(过去 30 天)
显示 更早的评论
Is there a way to run an external executable code (e.g. an old Fortran code) in a "MS-Windows command window" from Matlab.
I've tried using
> system('old_executable')
This works but the output of the executable goes the Matlab Command Window, rather than the MS-Windows command window. Moreover, the Matlab Command Window becomes occupied and can't be used for other work...
0 个评论
采纳的回答
Jan
2012-10-21
system('old_executable &')
3 个评论
Jan
2012-10-22
@Walter: The above command opens a Windows command window, which contains all output of the called function. Example:
system('dir &')
This opens a command shell and displays the contents of the current directory there - and not in Matlab's command window. Afterwards the shell window is kept open. Therefore I think this matchs the OP's needs.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!