The example shows the ability of Stateflow® to accept matrix input signals from Simulink® and also output matrix signals to Simulink.
www.mathworks.com