HELP how to esc by the command system ?
3 次查看(过去 30 天)
显示 更早的评论
Hi, I have a problem, when I use the command 'system()' to communicate with the 'line of command' I wont have a limited time for matlab to execute this function and if it is not finished at the end of this time I want to exit from the function 'system()'.
How can I do this?
The problem is that, when I use 'system()' Matlab is stopped on this command as long as it is finished, instead in this case, I want to interrupt this command before, and go head whit the script.
0 个评论
回答(1 个)
MJFcoNaN
2022-4-24
You can add "&" at the end of command to run it in backgroud.
system('mkdir aaa &')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!