Simulink - Find computed index of multidimensional signal at specific time
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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?
0 Commenti
Risposta accettata
Fangjun Jiang
il 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.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!