%% FOR Loops
%
% This example shows the use of flow charts in a Stateflow(R) C chart to
% create C statements such as the FOR loop. This particular example shows
% how you can create a simple FOR Loop that defines an array variable. The
% equivalent statements in MATLAB(R) are as follows: 
%
% for i=1:10 output(i) = 2 * i; end

% Copyright 2006-2014 The MathWorks, Inc.

% modify this to play around with the formatting of the example
mdl = 'sf_for';
open_system(mdl);
evalc('sim(mdl)');
