Simulating a geometric brownian motion in matlab?

How do you simulate a GBM in MATLAB using the risk-neutral measure?
Asking regarding generic GBMs without drift
St = S0exp[(r -sigma^2/2)t + sigmaWt];
Any advice is gratefully appreciated!

Answers (0)

Categories

Find more on Financial Toolbox in Help Center and File Exchange

Asked:

on 28 Jun 2017

Edited:

on 28 Jun 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!