getmsb
Bit más significativo
Sintaxis
Descripción
Ejemplos
Hallar el bit más significativo en un objeto fi
Utilice getmsb
para hallar el bit más significativo en el objeto fi
a
.
a = fi(-26, 1, 6, 0); c = getmsb(a)
c = 1 DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 1 FractionLength: 0
Puede verificar que el bit más significativo del objeto fi
a
es 1
mirando la representación binaria de a
.
disp(bin(a))
100110
Argumentos de entrada
a
— Objeto fi
de entrada
escalar | vector | matriz | arreglo multidimensional
Objeto fi
de entrada, especificado como escalar, vector, matriz o arreglo multidimensional. getmsb
solo admite objetos fi
con tipos de datos de punto fijo.
Tipos de datos: fi
Capacidades ampliadas
Generación de código C/C++
Genere código C y C++ mediante MATLAB® Coder™.
Generación de código HDL
Genere código VHDL, Verilog y SystemVerilog para diseños FPGA y ASIC mediante HDL Coder™.
Historial de versiones
Introducido en R2007b
Consulte también
bitand
| bitandreduce
| bitconcat
| bitget
| bitor
| bitorreduce
| bitset
| bitxor
| bitxorreduce
| getlsb
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)