analysis with matlab and plot