Azzera filtri
Azzera filtri

How to parallel run 2 different functions?

3 visualizzazioni (ultimi 30 giorni)
Ming
Ming il 29 Apr 2013
Hi, everyone:
Suppose I have two functions called P2 and P3, each function will run N times using for-loop and P2(t=k) requires the results from both P2(t=k-1) and P3(t=k), P3(t=k) just requires result from the previous P3(t=k-1).
I was wondering, is it possible to use the parallel toolbox, so that every time I could run P2(t=k) and P3(t=k+1) simultaneously? (function P3 is very similar to the function P2 but always run slightly slower than P2), because I am currently just run all P3s first, save required results and then run all P2s again.
Thanks

Risposte (0)

Categorie

Scopri di più su Manage Products in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by