added some command line matlab code