フィルターのクリア

Simulink - Find computed index of multidimensional signal at specific time

1 回表示 (過去 30 日間)
alp
alp 2011 年 11 月 25 日
I am trying to find which element(index) of a multidimensional signal is computed at a specific time in a Simulink model. Assume that there is a multidimensional input signal given to an add block together with a constant so Simulink calculates the sum with the constant for each element of the signal and gives the output as multidimensional signal. I want to know which index of the signal is computed at a time so I can do additional computation. How can I do that?

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 11 月 26 日
I don't think you can do that. In the generated code, you will see there is a for-loop to do that vector summation. But it's not accessible in Simulink.
To do what you want, you will need to use the "For Iterator" block and the "For Iterator Subsystem" block.

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by