Calling Lookup Tables In Stateflow
by Chris Fillyaw
01 Nov 2006
(Updated 30 Sep 2009)
This example demonstrates four common methods for calling look up tables in Stateflow®.
|
Watch this File
|
| File Information |
| Description |
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. |
| Required Products |
Simulink
Stateflow
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 02 Nov 2006 |
w sun
|
|
|
| 12 Dec 2006 |
Chris Fillyaw
|
|
|
| Updates |
| 09 Jan 2007 |
Updated description. |
| 11 Nov 2008 |
Added an example to demonstrate how to use Simulink blocks in Stateflow. |
| 30 Sep 2009 |
Updated copyright information. |
| 30 Sep 2009 |
Added copyright information. |
|
Contact us at files@mathworks.com