Filter löschen
Filter löschen

How to declare and use arrays in Stateflow?

2 Ansichten (letzte 30 Tage)
Daniel
Daniel am 14 Okt. 2016
Kommentiert: Preethi am 14 Okt. 2016
Hello.
I know this is really simple question.
How do i declare an array in Stateflow? If I use: Arr[i] = number;
I got syntax error. "Parse error: Unbalanced or unexpected paranthesis or bracket".
Should i use ( ) insted of []?
Then i got: " There is not full assignment to data 'Arr' in chart even through it is used here. Note that element-wise assignment, like "y(1) = 1", does not count ass a full assignment".

Antworten (0)

Kategorien

Mehr zu Simulink Functions 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