This submission contains code examples used in part 7 of the tutorial series on Parallel and GPU Computing with MATLAB. This part covers the following topics: executing code simultaneously on workers, accessing data on worker workspaces, and exchanging data between workers using Parallel Computing Toolbox™ and MATLAB Distributed Computing Server™.
Complete tutorial series is available here:
MathWorks Parallel Computing Toolbox Team (2020). Tutorial: Parallel and GPU Computing with MATLAB (7 of 9): spmd: Parallel Code beyond parfor (https://www.mathworks.com/matlabcentral/fileexchange/46708-tutorial-parallel-and-gpu-computing-with-matlab-7-of-9-spmd-parallel-code-beyond-parfor), MATLAB Central File Exchange. Retrieved .
Updated code to match the latest tutorials