My advice, get a reputed matlab programmer to help you out. There is this one site, matlabassignmentexperts.com, that I have used quite often when I have issues with matlab programming. It has real programmers and its actually the best I have seen so far. You should try it.