how can i show the functions files to other computers in parallel computing with main file

1 次查看(过去 30 天)
dear friends i have problem in my code matlab my program works with (parfor loop) with different computer the main program contains two functions when i run the program with parallel computing with other computers , the other computers can not see the functions in spite of see the main program the main message when i run
Error using parallel_function(line 589) Undefined function 'sb1' for input arguments of type 'cell'
the main question i have how can i show the functions files to other computers in parallel computing with main file
  2 个评论
Adam
Adam 2014-10-30
Please don't just put as much of your question as can fit in the title. It should be a short summary of your problem.
At a guess I would say you do not have the correct path settings on other computers. Make sure that all the functions being called are on the path. Do they run on the other computers without parfor?
Andrew Reibold
Andrew Reibold 2014-10-30
Try to edit the title of this question so that is very short and concise and gives an idea of what kind of help is needed for the problem. That way, people can see it in the problem listings and immediately be able to identify if they have the expertise to help you.
Putting your body in both places makes it hard, because you can't read the entire body in the question listings. Try to make a very brief summary or short description for the title, then include all the info in the body.

请先登录,再进行评论。

采纳的回答

Mohammad Abouali
Mohammad Abouali 2014-10-30
On your other computers, before running your code check if sb1 function is visible. type sb1 or edit sb1 see it open proper file.
If it is not in the same path, then you need to use one of the addpath function to add that to your search path, if you don't want to do it permanently.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by