%% IF Statement
%
% This example shows the use of flow charts in Stateflow(R) to create C or
% MATLAB(R) statements such as the IF - ELSE statement. This particular
% example shows how you can create a simple IF - ELSE statement in
% Stateflow. The equivalent statement in MATLAB(R) is as follows:
% 
% if condition <= 20 If_output = condition^2; elseif condition > 20 &
%     condition <= 70 If_output = 50*sin(condition); else If_output =
%     condition; end

% Copyright 2006-2017 The MathWorks, Inc.
% modify this to play around with the formatting of the example
mdl = 'sf_if';
open_system(mdl);
evalc('sim(mdl)');
