Hi everybody. Now I am learning parfor. Before I use parfor, I had a simulation of equity price with "gbm" and "simBySolution", which gave me what I want. however, when I changed my previous "for" loop to "parfor" loop, the simulation gives no output. Part of my codes are as follows.
parfor v = 1:8; StoPrice = gbm(StoPriDrift/365,SSigma(v)/365,'StartState',100); sstoprice = simBySolution(StoPrice,nPeriods-1,'DeltaTime',dt,'nTrials',1);end
I got the StoPrice from the gbm process. However, I did not get anything from the simBySolution. I will appreciate if someone can help me with this. Thanks Best, Julie
Best Answer