Run 4 m file together
1 次查看(过去 30 天)
显示 更早的评论
Hi. I have 4 m file which i should run them all in order continiously. How can i run them all together. Tnx
0 个评论
采纳的回答
Walter Roberson
2021-12-14
If you are using R2021b or later, you can potentially run all of them at the same time using the new backgroundpool feature.
Note that functions run in a background pool do not have access to the display.
If you just need to run them in sequence, then
while true
FirstFileName;
SecondFileName;
ThirdFileName;
FourthFileName;
end
2 个评论
Walter Roberson
2021-12-14
Then if you need to run them simultaneously you would need to use the Parallel Computing Toolbox, and use either parfeval() or parfevalOnAll() or spmd()
更多回答(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!