%% Importing a Model Exchange FMU into Simulink
% This model shows how to use the FMU Import block to load an FMU file. The
% FMU file supports execution in Model Exchange mode.

% Copyright 2017-2021 The MathWorks, Inc.

%% Bouncing Ball System
% This FMU file models a bouncing ball system, which is an example of a
% hybrid dynamic system. The FMU file supports FMI 2.0 Model Exchange mode.
% You can change acceleration due to gravity and coefficient of restitution
% in the FMU block dialog. You can also tune parameters during simulation.

open_system('fmudemo_bouncingball')
sim('fmudemo_bouncingball');

%%
bdclose all
