Filter löschen
Filter löschen

Error in parfor (First argument must be scalar.)

4 Ansichten (letzte 30 Tage)
Bhooshan
Bhooshan am 16 Okt. 2023
Kommentiert: Sam Marshalik am 16 Okt. 2023
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 Kommentar
Bhooshan
Bhooshan am 16 Okt. 2023
Bearbeitet: Bhooshan am 16 Okt. 2023
Error using sym/factor (line 51)
First argument must be scalar
Error in mtp (line 17)
parfor i=1:l
is the exact error

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 16 Okt. 2023
The error is not on the parfor line. The error is in the call to factor() that is somewhere in your parfor loop

Kategorien

Mehr zu Parallel Computing Fundamentals finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by