bitsra
Bit shift right arithmetic
Syntax
Description
c=bitsra( returns
the result of an arithmetic right shift by a,k)k bits
on input a for fixed-point operations. For floating-point
operations, it performs a multiply by 2-k.
If the input is unsigned, bitsra shifts zeros
into the positions of bits that it shifts right. If the input is signed, bitsra shifts
the most significant bit (MSB) into the positions of bits that it
shifts right.
bitsra ignores fimath properties
such as RoundingMode and OverflowAction.
When a is a fi object, a and c have
the same associated fimath and numerictype objects.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2007b