%% Hydraulic Cylinder Simulation
% 
% This is the first of three demos simulating hydraulic cylinders in different 
% arrangements. The other two are |sldemo_hydcly4| and |sldemo_hydrod|. 
% Inputs to the hydraulic cylinder subsystem are the pump flow and the 
% control valve orifice area. The model is organized as two subsystems - 
% the pump and the actuator assembly. Right-click on the subsystems 
% and select 'Look Under Mask' to see their contents. 
% 
% A detailed review of the equations used in this design can be found in 
% the white paper <http://www.mathworks.com/mason/tag/proxy.html?dataid=229&fileid=559 
% Using Simulink and Stateflow for Automotive Examples.> Please note
% that this paper is based on an older version of Simulink and does not 
% use all the newest block diagramming features in the current version 
% of Simulink.

bdclose all


close all


open_system('sldemo_hydcyl')
sim('sldemo_hydcyl')

%% 

bdclose all


close all
