I'm new to this group, but googling my problem always points here so I
thought I'd sign up.
I'm running multiple iterations of a time-evolving Monte Carlo
simulation in Matlab. Since each iteration is initialized randomly at
the first time point, the iterations can safely be run in parallel on
a quad core PC. I've previously been doing this by simply running 4
simultaneous Matlab sessions on one machine, but I thought I would
save my institution some licenses and automate the process at the same
The problem is that my code essentially has multiple nested for loops
within the main parfor loop:
data(j) = myfun()
Every one of these nested for loops generates an M-Lint warning that
"the input variable 'j' appears not to be initialized before the
parfor loop". The code works as it should, but why do I receive these
messages and are they impacting the performance of Matlab?
Thanks for any light you can shed on this.