time domain analysis with Matlab