Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Point Toolbox   

getmsb - Most significant bit

Syntax

c = getmsb(a)

Description

c = getmsb(a) returns the value of the most significant bit in a as a u1,0.

a can be a scalar fi object or a vector fi object.

getmsb only supports fi objects with fixed-point data types.

See Also

bitand, bitandreduce, bitconcat, bitget, bitor, bitorreduce, bitset, bitxor, bitxorreduce, getlsb

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS