There are some third party scripts out there to do data access control.... https://www.mathworks.com/matlabcentral/fileexchange/42910-semaphore
That might be useful.... have not tried it myself yet. I would recommend testing it out first
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!