Filter löschen
Filter löschen

vector variable from Simulink to Stateflow

1 Ansicht (letzte 30 Tage)
Emily Baldi
Emily Baldi am 21 Jan. 2015
hello
who helps me solve a little problem?
I have to adjust a Stateflow chart with a controlled transition by two conditions (OR operator) : one of this comes from simulink and is a vector.
The Stateflow does not accept vector as conditions.
How do I make the variable accepted by matlab simulink?

Antworten (1)

Muthukumar Ganesan
Muthukumar Ganesan am 12 Aug. 2022
Hi,
While defining the vector input of Stateflow, configure the size as -1.
The above setting will be enough to index an element of vector in the state and transition whereas if the vector needs to be processed completely without indexing an element then add a matlab function in the stateflow
Thanks.

Kategorien

Mehr zu Stateflow finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by