필터 지우기
필터 지우기

Simulink - Find computed index of multidimensional signal at specific time

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by