refs #1 Update Matlab Code.