Simulation (Main Function) Matrix z; // State of observer Func void main() { Real t0, tf, dt; Matrix Ts, Xs, Us, x0; t0 = 0; // Initial time tf = 3; // Final time dt = 0.005; // Sampling interval x0 = [0 0.2 0 0]'; // Ini. state of plant z = [0 0]'; // Ini. state of observer {TT,XX,UY} = OdeHybrid(t0,tf,dt,x0,diff_eqs,link_eqs); }