Bit Clear
R2026bSet specified bit of stored integer to zero
Libraries:
Simulink /
Logic and Bit Operations
Description
The Bit Clear block sets the specified bit, given by its index, of the stored integer to zero. The block ignores scaling.
You can specify the bit to be set to zero with the Index of bit parameter, where bit zero is the least significant bit.
Examples
Ports
The Bit Clear block supports Simulink® integer, fixed-point, and Boolean data types. The block does not support true floating-point data types or enumerated data types.
Input
Output
Parameters
Block Characteristics
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Logic and Bit Operations/Bit Clear"
Example: add_block("simulink/Logic and Bit Operations/Bit Clear","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006aSee Also
Bit Set | Bitwise Operator | Bit Rotate (HDL Coder) | Bit Shift (HDL Coder)
