Remove singleton dimensions from multidimensional signal
The Squeeze block removes singleton dimensions from its multidimensional input signal. A singleton dimension is any dimension whose size is one. The Squeeze block operates only on signals whose number of dimensions is greater than two. Scalar, one-dimensional (vector), and two-dimensional (matrix) signals pass through the Squeeze block unchanged.
The Squeeze block accepts input signals of any dimension and of any data type that Simulink® supports, including fixed-point and enumerated data types. For more information, see Data Types Supported by Simulink in the Simulink documentation.
In the following model, the Squeeze block converts a multidimensional array of size 3-by-1-by-2 into a 3-by-2 signal:
Because the Constant block supplies a signal with random values to the Squeeze block, the values in the Display block vary from simulation to simulation.
Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated
Inherited from driving block