There are many online Matlab guides/tutorials. Yagtom is one we recommend.
Material from last year tutorial.
Optimization package -- See README inside zip file for instructions on how to use it.