You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function allows you to evaluate multiple code blocks in parallel. It is intended as a user friendly interface to parfeval which I hope will one day be made obsolete by a matlab built-in (like parfor). On my laptop, the parallel overhead is about 30ms per task.
An example usage, which executes 2 code blocks in parallel:
nn = 4;
pareval({
% do the first set
{'r1 = rand(nn, nn);'
'r2 = magic(nn);'
'r3 = rand(nn, nn);'}
% do the second set
{'r4 = rand(nn, nn);'
'r5 = rand(nn, nn);'
'r6 = magic(nn);'} })
Cite As
mevans (2026). pareval (https://se.mathworks.com/matlabcentral/fileexchange/56672-pareval), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (4.37 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.2.0.0 | Updated to work on R2022a. |
||
| 1.1.0.0 | Does rehash to ensure that new functions are found. Better file cleanup. Rough overhead measurement included in help comment.
|
||
| 1.0.0.0 | updated description and tags
|
