Funciones de programación y tipos de datos
Funciones para operaciones bit por bit, operadores y herramientas de tipos de datos y control de programas
Realice la manipulación bit por bit de objetos fi
, manipule el tipo de datos de objetos fi
y desarrolle algoritmos utilizando funciones que admitan tipos de datos de punto fijo.
Funciones
Operaciones bit por bit
bitand | Bitwise AND of two fi objects |
bitandreduce | Reduce consecutive slice of bits to one bit by performing
bitwise AND operation |
bitcmp | Bitwise complement of fi object |
bitconcat | Concatenate bits of fi objects |
bitget | Get bits at certain positions |
bitor | Bitwise OR of two fi objects |
bitorreduce | Reduce consecutive slice of bits to one bit by performing
bitwise OR operation |
bitreplicate | Replicate and concatenate bits of fi 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 | Desplazamiento lógico de bits hacia la izquierda |
bitsra | Desplazamiento aritmético de bits hacia la derecha |
bitsrl | Bit shift right logical |
bitxor | Bitwise XOR of two fi objects |
bitxorreduce | Reduce consecutive slice of bits to one bit by performing
bitwise exclusive OR operation |
getlsb | Least significant bit |
getmsb | Bit más significativo |
Operadores de tipos de datos
double | Double-precision floating-point real-world value of fi
object |
single | Single-precision floating-point real-world value of fi object |
int | Obtener el valor entero almacenado de un objeto fi |
int8 | Convert fi object to signed 8-bit integer |
int16 | Convert fi object to signed 16-bit
integer |
int32 | Convert fi object to signed 32-bit
integer |
int64 | Convert fi object to signed 64-bit
integer |
uint8 | Convert fi object to unsigned 8-bit integer |
uint16 | Convert fi object to unsigned 16-bit
integer |
uint32 | Stored integer value of fi object as
built-in uint32 |
uint64 | Convert fi object to unsigned 64-bit
integer |
Herramientas de tipos de datos
cast64BitFiToInt | Cast fi object types that can be exactly represented to a
64-bit integer data type (desde R2020a) |
cast64BitIntToFi | Cast 64-bit integer types to an equivalent fi object
type (desde R2020a) |
castFiToInt | Cast fi object to equivalent integer data type (desde R2020a) |
castFiToMATLAB | Cast fi object type to an equivalent built-in MATLAB data type (desde R2020a) |
castIntToFi | Cast an integer data type to equivalent fi type (desde R2020a) |
num2str | Convertir números a arreglo de caracteres |
reinterpretcast | Convert fixed-point or integer data types without changing underlying data |
rescale | Change scaling of fi object |
storedInteger | Stored integer value of fi object |
storedIntegerToDouble | Convert stored integer value of fi object to built-in double
value |
stripscaling | Stored integer of fi object |
Límites de valores numéricos
eps | Precisión relativa cuantizada para objetos fi o quantizer |
intmax | Valor entero positivo almacenado más grande representable mediante numerictype de un objeto fi |
intmin | Smallest stored integer value representable by numerictype of fi object |
realmax | Largest positive fixed-point value or quantized number |
realmin | Smallest positive normalized fixed-point value or quantized number |
Tipo de consulta y valor
fixed.extractNumericType | Extract numeric type from input (desde R2021a) |
isboolean | Determinar si la entrada es booleana |
isdouble | Determinar si la entrada es un tipo de datos de precisión doble |
isfi | Determine whether variable is fi object |
isfimath | Determine whether variable is fimath object |
isfimathlocal | Determine whether fi object has local
fimath |
isfipref | Determine whether input is fipref object |
isfixed | Determine whether input is fixed-point data type |
isnumerictype | Determine whether input is numerictype object |
ispropequal | Determine whether properties of two fi objects are
equal |
isquantizer | Determine whether input is quantizer 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 whether fi object is signed |
issingle | Determine whether input is single-precision data type |
isslopebiasscaled | Determine whether numerictype object has nontrivial slope and
bias scaling |
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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)