Matlab classes to simulate the HJB (Hamilton-Jacobi-Bellman) equation arising from the stochastic control problem in this research paper by Mark Davis and Sebastien Lleo. This code was written as part of my thesis for the MSc in Mathematical Finance from the University of York.
See example files provided in folder samples
. The result of executing the 2-factor example produces the following grahs: