Using the parfor loop to minimize a function
1 view (last 30 days)
I am completely new to MATLAB's parallel computing and I didn't know how to convert my for loop into a parfor loop. I have a function f which I would like to evaluate at 10000 different values in vector A. My laptop has 6 processors that I would like to use simultaneously to divide the task because evaluating my function is very time-consuming. So, here is how my simplified problem looks like:
A=; %a 10 by 6 matrix of parameter values
Can you help me rewrite this for a parfor loop?
Thanks in advance!