필터 지우기
필터 지우기

vector variable from Simulink to Stateflow

조회 수: 1 (최근 30일)
Emily Baldi
Emily Baldi 2015년 1월 21일
답변: Muthukumar Ganesan 2022년 8월 12일
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?

답변 (1개)

Muthukumar Ganesan
Muthukumar Ganesan 2022년 8월 12일
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.

카테고리

Help CenterFile Exchange에서 Stateflow에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by