A Matlab visualization tool for descent algorithm