system command error within a parfor
Ältere Kommentare anzeigen
Hi all,
I'm getting this error when runnning the code below. I isolated the issue to the use of the system command within the parfor loop. Note however that the same exact code runs fine on another -windows- PC.
Error Identifier: MATLAB:parallel:future:FetchNextFutureErrored
Error Message: The function evaluation completed with an error.
parfor ......
.....
command = ...;
system(command);
end
2 Kommentare
Rik
am 19 Mär. 2026 um 15:16
Does that other Windows PC also have the parallel computing toolbox? Because without that toolbox, parfor loops are treated as normal for loops, which avoids a lot of issues.
Ahmed Elkady
am 19 Mär. 2026 um 17:49
Antworten (1)
Ritam
vor etwa 2 Stunden
Sometimes, if there are any installation-related issues, reinstalling the Parallel Computing Toolbox may help resolve the problem.
Additionally, resetting the MATLAB search path and rehashing the toolbox cache can be helpful. This can be done by running the following commands:
restoredefaultpath
rehash toolboxcache
savepath
Before running these commands, it is recommended to make a backup copy of the "pathdef.m" file. The location of this file can be identified using the following command:
which -all pathdef
Kategorien
Mehr zu Parallel for-Loops (parfor) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!