% This tutorial explains how to use the toolbox in order to develop a simulator and a controller for the
% inverted pendulum.

% dposdt =  (pos/m - g*sin(angle)*cos(angle) + l*power(angvel,2)*sin(angle))/(M/m + power(sin(angle),2))
% dangveldt = (-pos*cos(angle)/m + (M+m)*g*sin(angle)/m - l*power(angvel,2)*sin(angle)*cos(angle))/(l*(M/m + power(sin(angle),2)))

% First create a dataset


