% System Dynamics ---------------------------------------------------------
A = [-0.7 -2;2 -0.7]; B = [1;1]; c = [-2;-1];
% Parameters --------------------------------------------------------------
params.R0 = zonotope(interval([2;2],[2.5;2.5]));
params.U = zonotope(interval(-0.1,0.1));
options.zonotopeOrder = 10;
% Reachability Analysis ---------------------------------------------------
R = reach(sys,params,options);
% Simulation --------------------------------------------------------------
simRes = simulateRandom(sys,params,simOpt);
% Visualization -----------------------------------------------------------
useCORAcolors("CORA:contDynamics")
plot(R,[1,2],'DisplayName','Reachable set')
plot(R.R0,[1,2],'DisplayName','Initial set')
plot(simRes,[1,2],'DisplayName','Simulations')
legend('Location','southeast')