Trying to implement the factorial program in stateflow.

6 views (last 30 days)
Error While running the Simulink/Stateflow model model
Error: Size for Local Data 'index' may not be inherited
Error: Size for Local Data 'index' may not be inherited
Images are attached here for the approach that I followed.

Answers (1)

Muthukumar Ganesan
Muthukumar Ganesan on 28 Jul 2022
Hi,
Please don't set the "size" property for the data "index" as -1. Either keep that field empty or 1.
Thanks.

Categories

Find more on Complex Logic in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!