function xout = pendulum(x) % % pendulum example % xout = x; % make sure shapes agree xout(1) = x(2); xout(2) = -sin(x(1));