How can i simulate equity prices with parfor?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Programming 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!