Extract MSB
R2026bLibraries:
Fixed-Point Designer HDL Support /
Logic and Bit Operations
Description
The Extract MSB block allows you to extract the most significant bit (MSB)
from the stored integer value of the input signal. For a signed input, the Extract
MSB block returns the sign bit. If the input is a built-in integer or fixed-point
data type, the output is returned as a ufix1 type. Floating-point inputs
are passed through the block unchanged.
Examples
Ports
Input
Output
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"embeddedMatrixLib/Logic and Bit Operations/Extract MSB"
Example: add_block("embeddedMatrixLib/Logic and Bit Operations/Extract MSB","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2026b

