Running several scripts in parallel:
Show older comments
Hello, I'm fairly new using Matlab as we're taking it as a subject at our college.
Our final project is to design and build a robot using Matlab, and only Matlab, no other language nor external code allowed and a camera for the robot to navigate, locate objects and retrieve them.
I'm trying to make two modules, one for navigation where I'll receive information from the robot's position and follow a trajectory, and another for vision where I'll locate the objects.
I'm trying to make them run in parallel, so that each of them is running independently on their own loops, calling them from the main program. I only have a single core PC so I can't use multicore threading.
I've read the following topics: http://stackoverflow.com/questions/6248439/parallel-programming-on-matlab-to-execute-3-different-functions-at-the-same-time
Everybody indicates I must use parfor to run several scripts but I don't understand if I must forcibly possess several cores to do it. I've also read that it can be implemented using mex files but haven't been succesful.
Or is there other way? I don't want to run several instances of Matlab as I'm trying to keep everything in one application and only call the rest of modules from there.
Thanks!
Answers (0)
Categories
Find more on Code Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!