shunans code and resulting mat file