The matlab functions that wani is working on, but not on the wagerlab repository