# Matlab-Start-Parallel-Pool **Repository Path**: hqiao_1/Matlab-Start-Parallel-Pool ## Basic Information - **Project Name**: Matlab-Start-Parallel-Pool - **Description**: No description available - **Primary Language**: Matlab - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-11-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Matlab-Start-Parallel-Pool Start the parallel pool and set the pool size in MATLAB. The script operates in 2 steps: 1. Check the CPU cores available 2. Set the parallel pool according to the user settings The two scripts below has different functionality as described. Choose one in your convenience! ## File startParallelAndSetCores.m
 function startParallelAndSetCores(nCPUCores)
* pool size = nCPUCores * if nCPUCores==0, not use parallel * if nCPUCores<0 OR nCPUCores>ncores, use all cores * if 0 function startParallel(npart) * pool size = (CPU number) / npart