フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Is that possible to use Variable-Size Data in stateflow

1 回表示 (過去 30 日間)
Zac li
Zac li 2018 年 11 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I need a Variable-Size parameter in my Stateflow because I only know it's size at the end of the whole process, during this process now data are continually being added into this Variable-Size Parameter.
Is that possible to use Variable-Size Data in Stateflow(to use 'ones' or 'zeros' function in Stateflow), or are any other methods to achieve this purpose?
Just like in MATLAB(I don't know what is the size of A at the beginning of this process):
n = 1;B = [1 0 0 0 1 0 ...];
for i = 1:100
if B(i) == 0
A(n) = 1;
n = n +1;
end
end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by