Main Content

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

Operaciones lógicas y de bits

Bloques de operaciones lógicas o bit a bit, como Logical Operator y Relational Operator

Utilice los bloques de la biblioteca Logic and Bit Operations para detectar cambios en los valores de las señales, realizar operaciones lógicas o relacionales en las entradas y convertir los bits en enteros.

Bloques

Bit ClearSet specified bit of stored integer to zero
Bit SetSet specified bit of stored integer to one
Bit to Integer ConverterMap vector of bits to corresponding vector of integers
Bitwise OperatorSpecified bitwise operation on inputs
Combinatorial LogicImplement truth table
Compare To ConstantDeterminar cómo se compara la señal con una constante especificada
Compare To ZeroDetermine how signal compares to zero
Detect ChangeDetectar cambios en el valor de una señal
Detect DecreaseDetect decrease in signal value
Detect Fall NegativeDetect falling edge when signal value decreases to strictly negative value, and its previous value was nonnegative
Detect Fall NonpositiveDetect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive
Detect IncreaseDetect increase in signal value
Detect Rise NonnegativeDetect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative
Detect Rise PositiveDetectar el flanco de subida cuando el valor de una señal aumenta a un valor estrictamente positivo y su valor anterior era no positivo
Extract BitsOutput selection of contiguous bits from input signal
Float Extract BitsExtract bits from floating-point input samples (desde R2023a)
Integer to Bit ConverterMap vector of integers to vector of bits
Interval TestDetermine if signal is in specified interval
Interval Test DynamicDetermine if signal is in specified interval
Logical OperatorPerform specified logical operation on input
Relational OperatorPerform specified relational operation on inputs
Shift ArithmeticShift bits or binary point of signal