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

1 Ansicht (letzte 30 Tage)
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 Kommentare
Adam
Adam am 30 Okt. 2014
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 am 30 Okt. 2014
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mohammad Abouali
Mohammad Abouali am 30 Okt. 2014
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.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements 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