added matlab visualizer code