%% Data From Workspace
% 
% This example shows how to use a variable from the MATLAB(R) workspace in a
% Stateflow(R) chart. The variables |delay| and |gain| are
% local variables whose initial value method is defined as "Parameter". For
% such variables, Stateflow picks the initial value from the base MATLAB
% workspace.

% Copyright 2007-2013 The MathWorks, Inc.

mdl = 'sf_fromworkspace';
open_system(mdl);
evalc('sim(mdl)');
