Main Content

Float Extract Bits

Extract bits from floating-point input samples

Since R2023a

  • Extract Bits block

Libraries:
Simulink / Logic and Bit Operations

Description

The Float Extract Bits block accepts a signal containing floating-point data and outputs a signal containing the binary representation of the data. For more information on this binary representation, see the IEEE Standard for Floating Point Arithmetic.

Ports

Input

expand all

Signal containing floating-point data, specified as a scalar, vector, or matrix.

Data Types: single | double | half | bus

Output

expand all

Binary representation of data, returned as a scalar, vector, or matrix.

Data Types: single | double | half

Parameters

expand all

Parts of data to output as its binary representation, specified as:

  • All bits

  • Range of bits

  • Sign

  • Mantissa

  • Exponent

Programmatic Use

Block Parameter: OutputMode
Type: character vector
Values: 'All bits' | 'Range of bits' | 'Sign' | 'Mantissa' | 'Exponent'
Default: 'All bits'

Range of bits of the signal to return, specified as a vector.

Programmatic Use

Block Parameter: BitRange
Type: character vector
Values: '[0 15]' | vector
Default: '[0 15]'

Block Characteristics

Data Types

double | half | single

Direct Feedthrough

yes

Multidimensional Signals

no

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

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

Version History

Introduced in R2023a