I implemented an integrator (grounded capacitor driven by piece-wise constant current source) using Stateflow and the 'after' condition. See code.
With the given setting the capacitor should change its voltage every 1 sec, but does so about every 1.3 secs - Why?