Simulink - Find computed index of multidimensional signal at specific time
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Fangjun Jiang
el 26 de Nov. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!