Logic Chart - Control Oscillations By Using The Duration Operator Matlab