Is it possible to run multiple lines at once in a Matlab script?
Mostrar comentarios más antiguos
I am working on a project where I need to pull data from an external program called XFOIL. I have a function created called XFOIL which can run the program and pull data from it automatically. Unfortunately XFOIL takes time to run, and I have a lot of variation in the parameters of the data I need to collect. That means I need to run XFOIL a significant number of times. Currently my script runs the XFOIL functions sequentially which takes a while. Is there a way where I can run multiple functions at once in the same script? If I had the ability (I do have the computing power) to run 10 or so of these at the same time, it would significantly speed up the waiting time for data.
Example of what I mean, I would like to run these all at the same time instead of one after the other:
[pol1 foil1] = xfoil(myfoil1,alpha,Re_c,Mach,'ppar T 0.2','ppar n 330','oper iter 200');
[pol2 foil2] = xfoil(myfoil2,alpha,Re_c,Mach,'ppar T 0.2','ppar n 330','oper iter 200');
[pol3 foil3] = xfoil(myfoil3,alpha,Re_c,Mach,'ppar T 0.2','ppar n 330','oper iter 200');
etc..
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Parallel Computing Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!