フィルターのクリア

Error in parfor (First argument must be scalar.)

4 ビュー (過去 30 日間)
Bhooshan
Bhooshan 2023 年 10 月 16 日
コメント済み: Sam Marshalik 2023 年 10 月 16 日
I am getting error in parfor as
First argument must be scalar.
in my code i use
parpool(4)
parfor i=1:l
where l is a scalar
when i use just for i=1:l and disbles parpool
the program runs just fine
what i am missing here?
  1 件のコメント
Bhooshan
Bhooshan 2023 年 10 月 16 日
編集済み: Bhooshan 2023 年 10 月 16 日
Error using sym/factor (line 51)
First argument must be scalar
Error in mtp (line 17)
parfor i=1:l
is the exact error

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

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 10 月 16 日
The error is not on the parfor line. The error is in the call to factor() that is somewhere in your parfor loop
  1 件のコメント
Sam Marshalik
Sam Marshalik 2023 年 10 月 16 日
@Bhooshan: Can you show the line of code where you are calling factor?

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

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by