Creating a Dynamical system using MATLAB and visualizing the reachable states