classdef MyBouncingBall < HybridSystem % Define bouncing ball system as a subclass of HybridSystem. properties % Define variable class properties. ... end properties(SetAccess = immutable) % Define constant (i.e., "immutable") class properties. ... end methods % Define functions, including definitions of f, g, C, and D. function xdot = flowMap(this, x, t, j) ... end function xplus = jumpMap(this, x, t, j) ... end function inC = flowSetIndicator(this, x, t, j) ... end function inD = jumpSetIndicator(this, x, t, j) ... end end end