MATLAB: Clarification for parallel process

MATLABparfor

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

Best Answer

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.).