Main Content

PS Selector

Select elements from vector or matrix input physical signal

Since R2023b

  • PS Selector block

Libraries:
Simscape / Foundation Library / Physical Signals / Nonlinear Operators

Description

The PS Selector block lets you select one or more elements from the input vector or matrix. Use the Indices parameter to select elements in the input signal. The indices can be in any order, to enable construction of permutations and repeats.

Ports

Input

expand all

Input physical signal specified as a vector or matrix.

The port name is not visible in the block icon, but you can see this name in the underlying source file by clicking the Source code link in the Description tab of the block dialog box.

Output

expand all

Output physical signal containing the selected elements of the input signal.

The port name is not visible in the block icon, but you can see this name in the underlying source file by clicking the Source code link in the Description tab of the block dialog box.

Parameters

expand all

Select elements of the input signal by specifying their indices. The parameter value can be a scalar or vector of integers ranging from 1 to the number of elements in the input signal. The indices can be in any order, to enable construction of permutations and repeats.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2023b