MATLAB Answers

parfor problems ( add attached files)

21 ビュー (過去 30 日間)
Minsik Km
Minsik Km 2020 年 7 月 6 日
コメント済み: Minsik Km 2020 年 7 月 7 日
My code is too slow, so i tried using 'parfor' like below
parfor i = 1:26
for j= 1:20
qmo = 0.001-qso;
fbt_ % this is my code for calculation
but i still get error, 'UndefinedFunction error in 'etatl' worker.
use addAttachedFiles(pool,files) and attach needed files. check 'parallel.Pool/addAttachedFile'.
i checked 'parallel.Pool/addAttachedFile' but i still don't know how to solve the problem..

  0 件のコメント



Edric Ellis
Edric Ellis 2020 年 7 月 6 日
I think the problem here is that "fbt_.m" is a script file. You should convert it to a function. More in the doc about scripts and functions here: .

  1 件のコメント

Minsik Km
Minsik Km 2020 年 7 月 7 日
thank you!
i will try that way.


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by