%% Example of a Standalone Stateflow Chart
% The file |sf_chart.sfx| contains the standalone Stateflow chart
% |sf_chart|. The chart has local data |u|, |x|, and |y|.

% Copyright 2018-2020 The MathWorks, Inc.

%%

% Set up charts with white background
set_param(0,'ExportBackgroundColorMode','white');

edit sf_chart.sfx

% Remove copyright annotation from screenshot
rt = sfroot;
an = rt.find('-isa','Stateflow.Annotation');
an.delete;

%%
% This example shows how to execute this chart from the Stateflow Editor
% and in the MATLAB Command Window.
%
