Fixed-Point Blockset    
MinMax

Output the minimum or maximum input value

Library

Math

Description

The MinMax block is a masked S-function that outputs either the minimum or the maximum element of the inputs. You can choose which function to apply with the Function parameter list.

You specify the number of input ports with the Number of input ports parameter. If the block has one input port, the input must be a scalar or a vector. The block outputs a scalar equal to the minimum or maximum element of the input vector.

If the block has multiple input ports, the non-scalar inputs must all have the same dimensions. The block expands any scalar inputs to have the same dimensions as the non-scalar inputs. The block outputs a signal having the same dimensions as the input. Each output element equals the minimum or maximum of the corresponding input elements.

For a detailed description of all other block parameters, refer to Block Parameters.

Parameters and Dialog Box

Function
The function to apply to the input.
Number of input ports
The number of inputs to the block.
Output data type and scaling
Specify the output data type and scaling via the dialog box, or inherit the data type and scaling from the driving block or by backpropagation.
Output data type
Any data type supported by the Fixed-Point Blockset.
Output scaling
Set the output scaling using radix point-only or [Slope Bias] scaling. These scaling modes are available only for generalized fixed-point data types.
Lock output scaling so autoscaling tool can't change it
If selected, Output scaling is locked. This feature is available only for generalized fixed-point output.
Round toward
Rounding mode for the fixed-point output.
Saturate to max or min when overflows occur
If selected, fixed-point overflows saturate.

Characteristics

Input Ports
Any data type supported by the blockset
Output Port
Any data type supported by the blockset
Direct Feedthrough
Yes
Scalar Expansion
Yes

See Also

MinMax Running Resettable


  Matrix Gain MinMax Running Resettable