%% Anti-Lock Braking System (ABS) Simulation 
% 
% This example describes a simple model for an Anti-Lock Braking System (ABS). 
% The model sldemo_absbrake.mdl simulates the dynamic behavior of a vehicle 
% under hard braking conditions. The model represents a single wheel, which 
% may be replicated a number of times to create a model for a multi-wheel vehicle.
% 
% This model uses the signal logging feature in Simulink. Signals are logged to the 
% MATLAB workspace where they can be analyzed and viewed. You can view 
% the code in sldemo_absbrakeplots.m to see how this is done.
% 
% 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_absbrake')
sim('sldemo_absbrake')

%% 

bdclose all


close all
