HELP how to esc by the command system ?

1 回表示 (過去 30 日間)
Luigi Renzulli
Luigi Renzulli 2022 年 4 月 22 日
回答済み: MJFcoNaN 2022 年 4 月 24 日
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.

回答 (1 件)

MJFcoNaN
MJFcoNaN 2022 年 4 月 24 日
You can add "&" at the end of command to run it in backgroud.
system('mkdir aaa &')

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by