Matlab workers in Parloop are not using the path order
Show older comments
Hello, I'm using this code
parfor k=1:10
[..]=pca(..)
end
I have 2 definitions of pca (the matlab package and another package). I've set the search path to use the matlab package by default, but inside the parloop the other function is used instead. I didn't found a way to arrange this without removing the other package. Thanks
4 Comments
Kirby Fears
on 25 Jan 2017
Why don't you change your external package to have a different name? That's the most straight forward solution.
How did you modify your path?
Leandro
on 26 Jan 2017
Adam
on 2 Feb 2018
I would have thought if one of them was in a package that you would have to specify it with the package name prepended, which would remove the ambiguity anyway.
Xingwang Yong
on 29 Jan 2026 at 19:54
Moved: Walter Roberson
on 29 Jan 2026 at 21:40
I am using R2024b, still have the problem.
Accepted Answer
More Answers (0)
Categories
Find more on Parallel Computing Fundamentals in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!