Clarification for parallel process
1 次查看(过去 30 天)
显示 更早的评论
I have set up one mainScript, where one parallel for initiates calling of func1 function. This function calls script1 within. This means at a time several for loop is accessing script1 (though through a function). Can these be a problem for variables?
mainScript
func1
script1
0 个评论
采纳的回答
Ameer Hamza
2018-5-2
No, every function call has its own workspace, they do not interfere with each other unless you try to do it yourself (for example using evalin(), assignin() etc.).
2 个评论
Walter Roberson
2018-5-2
However, scripts are not functions.
On the other hand, workers in parallel processing are independent processes, and cannot interfere with each other even using evalin() or assignin()
更多回答(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!