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

9 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 May 2022
Edited: MathWorks Support Team on 20 May 2022
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:

More Answers (0)

Tags

Products


Release

R2009b

Community Treasure Hunt

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

Start Hunting!