This submission contains code examples and presentation used in part 4 of the tutorial series on Parallel and GPU Computing with MATLAB. This part provides deeper insights into using parfor: conversion of for-loops to parfor loops and factors governing the speedup of parfor loops.
Complete tutorial series is available here:
MathWorks Parallel Computing Toolbox Team (2019). Tutorials: Parallel and GPU Computing with MATLAB (4 of 9): Deeper Insights into Using parfor (https://www.mathworks.com/matlabcentral/fileexchange/46705-tutorials-parallel-and-gpu-computing-with-matlab-4-of-9-deeper-insights-into-using-parfor), MATLAB Central File Exchange. Retrieved .
Updated code to match the latest tutorials