Functions for Programming and Data Types
Functions for bitwise operations, data type operators and tools, and program control
Perform bitwise manipulation offi
objects, manipulate the data type offi
objects, and develop algorithms using functions that support fixed-point data types.
Functions
Bitwise Operations
bitand |
BitwiseAND of twofi objects |
bitandreduce |
Reduce consecutive slice of bits to one bit by performing bitwiseAND operation |
bitcmp |
Bitwise complement offi object |
bitconcat |
Concatenate bits offi objects |
bitget |
Get bits at certain positions |
bitor |
BitwiseOR of twofi objects |
bitorreduce |
Reduce consecutive slice of bits to one bit by performing bitwiseOR operation |
bitreplicate |
Replicate and concatenate bits offi object |
bitrol |
Bitwise rotate left |
bitror |
Bitwise rotate right |
bitset |
Set bit at specific location |
bitshift |
Shift bits specified number of places |
bitsliceget |
Get consecutive slice of bits |
bitsll |
Bit shift left logical |
bitsra |
Bit shift right arithmetic |
bitsrl |
Bit shift right logical |
bitxor |
Bitwise exclusiveOR of twofi objects |
bitxorreduce |
Reduce consecutive slice of bits to one bit by performing bitwise exclusiveOR operation |
getlsb |
Least significant bit |
getmsb |
Most significant bit |
Data Type Operators
double |
Double-precision floating-point real-world value offi object |
single |
Single-precision floating-point real-world value offi object |
int |
Get stored integer value of a fi object |
int8 |
Convertfi object to signed 8-bit integer |
int16 |
Convertfi object to signed 16-bit integer |
int32 |
Convertfi object to signed 32-bit integer |
int64 |
Convertfi object to signed 64-bit integer |
uint8 |
Convertfi object to unsigned 8-bit integer |
uint16 |
Convertfi object to unsigned 16-bit integer |
uint32 |
Stored integer value offi object as built-inuint32 |
uint64 |
Convertfi object to unsigned 64-bit integer |
Data Type Tools
cast64BitFiToInt |
Castfi object types that can be exactly represented to a 64-bit integer data type |
cast64BitIntToFi |
Cast 64-bit integer types to an equivalentfi object type |
castFiToInt |
Cast fi object to equivalent integer data type |
castFiToMATLAB |
Castfi object type to an equivalent built-inMATLABdata type |
castIntToFi |
Cast an integer data type to equivalentfi type |
num2str |
Convert numbers to character array |
reinterpretcast |
Convert fixed-point or integer data types without changing underlying data |
rescale |
Change scaling offi object |
storedInteger |
Stored integer value offi object |
storedIntegerToDouble |
Convert stored integer value offi object to built-in double value |
stripscaling |
Stored integer offi object |
Numeric Value Limits
eps |
Quantized relative accuracy forfi orquantizer objects |
intmax |
Largest positive stored integer value representable bynumerictype offi object |
intmin |
最小的存储整数能被代表的价值numerictype offi object |
realmax |
Largest positive fixed-point value or quantized number |
realmin |
Smallest positive normalized fixed-point value or quantized number |
Query Type and Value
fixed.extractNumericType |
Extract numeric type from input |
isboolean |
Determine whether input is Boolean |
isdouble |
Determine whether input is double-precision data type |
isfi |
Determine whether variable isfi object |
isfimath |
Determine whether variable isfimath object |
isfimathlocal |
Determine whetherfi object has localfimath |
isfipref |
Determine whether input isfipref object |
isfixed |
Determine whether input is fixed-point data type |
isnumerictype |
Determine whether input isnumerictype object |
ispropequal |
Determine whether properties of twofi objects are equal |
isquantizer |
Determine whether input isquantizer object |
isscaleddouble |
Determine whether input is scaled double data type |
isscaledtype |
Determine whether input is fixed-point or scaled double data type |
isscalingbinarypoint |
Determine whether input has binary point scaling |
isscalingslopebias |
Determine whether input has nontrivial slope and bias scaling |
isscalingunspecified |
Determine whether input has unspecified scaling |
issigned |
Determine whetherfi object is signed |
issingle |
Determine whether input is single-precision data type |
isslopebiasscaled |
Determine whethernumerictype object has nontrivial slope and bias scaling |
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina(Español)
- Canada(English)
- United States(English)
Europe
- Belgium(English)
- Denmark(English)
- Deutschland(Deutsch)
- España(Español)
- Finland(English)
- France(Français)
- Ireland(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- Norway(English)
- Österreich(Deutsch)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)