Continuous plotting using matlab