Effacer les filtres
Effacer les filtres

Simulink - Find computed index of multidimensional signal at specific time

1 vue (au cours des 30 derniers jours)
alp
alp le 25 Nov 2011
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?

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 26 Nov 2011
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.

Plus de réponses (0)

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by