Why does the option "Starting and ending indices (port)" within the Selector block generate an output filled with NaNs in Simulink 7.4 (R2009b) ?

조회 수: 11 (최근 30일)
I would like to extract a small part of a multidimensional signal in Simulink with the selector block. If I use the option "Starting and ending indices (port)" I obtain an output of the same size as the input where the part to be removed has been substituted by NaNs. I was expecting an output signal of reduced dimension.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2022년 5월 20일
편집: MathWorks Support Team 2022년 5월 18일
This is expected behavior. Documentation on the option "Starting and Ending Indices (Port)" is missing from the User's Guide on Simulink 7.4 (R2009b).
Here is current documentation that explains the behavior:
Simulink 7.4 works with variable size signals. If the logged signal data is smaller than the maximum size, values are padded with NaNs or appropriate values. Here are the basics for getting started with Variable Size Signals in Simulink:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품


릴리스

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by