Calling Lookup Tables In Stateflow

This example demonstrates four common methods for calling look up tables in Stateflow®.

2.6K Downloads

Updated 1 Sep 2016

View License

The attached model contains four common methods for accessing lookup tables within Stateflow. The four examples consist of using a Simulink® block in Stateflow, Embedded MATLAB™ functions in Stateflow, calling a function triggered Simulink subsystem in Stateflow, and including C-code in Stateflow. This is demonstrated in the model interp_1d_examples_r2008b.mdl.
If you are using a version of Stateflow prior to version 7.2 R2008b, you can still call lookup tables using three methods such as using Embedded MATLAB functions in Stateflow, calling a function triggered Simulink subsystem in Stateflow, and including C-code in Stateflow. This is demonstrated in the model interp_1d_examples.mdl.

Cite As

Chris Fillyaw (2023). Calling Lookup Tables In Stateflow (/matlabcentral/fileexchange/12845-calling-lookup-tables-in-stateflow), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Stateflow in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.3.0.0

Added copyright information.

1.2.0.1

Updated license

1.2.0.0

Updated copyright information.

1.1.0.0

Added an example to demonstrate how to use Simulink blocks in Stateflow.

1.0.0.0

Updated description.