system command error within a parfor

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 件のコメント

Rik
Rik 2026 年 3 月 19 日 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
Ahmed Elkady 2026 年 3 月 19 日 17:49
Both PCs have the parallel computing toolbox. The only diffference, other than the hardware, is that one has R2023a (not working) and the other R2023b (working)

サインインしてコメントする。

回答 (1 件)

Ritam
Ritam 2026 年 4 月 13 日 9:57

0 投票

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

2 件のコメント

Ahmed Elkady
Ahmed Elkady 2026 年 4 月 16 日 11:14
移動済み: Stephen23 2026 年 4 月 16 日 11:53
Thank you for the suggestion. I tried it but the issue still persist.
Ritam
Ritam 2026 年 4 月 16 日 11:35
移動済み: Stephen23 2026 年 4 月 16 日 11:53
Then, I will suggest you to reach out to MathWorks Technical Support. They will be able to resolve your issue faster.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeParallel for-Loops (parfor) についてさらに検索

製品

リリース

R2023a

質問済み:

2026 年 3 月 19 日

移動済み:

2026 年 4 月 16 日 11:53

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by