%% Inverted Pendulum Animation 
%  
% This system simulates a cart carrying an inverted pendulum and displays an animation. 
%  
% The animation is created using MATLAB's Handle Graphics. The animation block is
% an S-function.  To see the S-function souce code, look under the mask for the block 
% named "Animation", double click on the S-function block and then press the "Edit" 
% button on its dialog.  This will bring up the M-file S-function source code in the 
% MATLAB editor.

open_system('penddemo')
sim('penddemo')
