フィルターのクリア

How to declare and use arrays in Stateflow?

1 回表示 (過去 30 日間)
Daniel
Daniel 2016 年 10 月 14 日
コメント済み: Preethi 2016 年 10 月 14 日
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".
  1 件のコメント
Preethi
Preethi 2016 年 10 月 14 日
hi,
try
Arr = [Arr, number];

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by