Contenu principal

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

Opérations sur les bits et logiques

R2026a
Blocs d'opérations logiques ou sur les bits tels que Logical Operator et Relational Operator

Utilisez les blocs de la bibliothèque Logic and Bit Operations pour détecter les modifications de valeurs de signaux, effectuer des opérations logiques ou relationnelles sur les entrées et convertir des bits en nombres entiers.

Blocs

Bit Clear blockBit ClearSet specified bit of stored integer to zero
Bit Set blockBit SetSet specified bit of stored integer to one
Bit to Integer Converter blockBit to Integer ConverterMap vector of bits to corresponding vector of integers
Bitwise Operator blockBitwise OperatorSpecified bitwise operation on inputs
Combinatorial Logic blockCombinatorial LogicImplement truth table
Compare To Constant blockCompare To ConstantDéterminer comment comparer le signal à la constante spécifiée
Compare To Zero blockCompare To ZeroDetermine how signal compares to zero
Detect Change blockDetect ChangeDetect change in signal value
Detect Decrease blockDetect DecreaseDetect decrease in signal value
Detect Fall Negative blockDetect Fall NegativeDetect falling edge when signal value decreases to strictly negative value, and its previous value was nonnegative
Detect Fall Nonpositive blockDetect Fall NonpositiveDetect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive
Detect Increase blockDetect IncreaseDetect increase in signal value
Detect Rise Nonnegative blockDetect Rise NonnegativeDetect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative
Detect Rise Positive blockDetect Rise PositiveDetect rising edge when signal value increases to strictly positive value, and its previous value was nonpositive
Extract Bits blockExtract BitsOutput selection of contiguous bits from input signal
Extract Bits blockFloat Extract BitsExtract bits from floating-point input samples (depuis R2023a)
Integer to Bit Converter blockInteger to Bit ConverterMap vector of integers to vector of bits
Interval Test blockInterval TestDetermine if signal is in specified interval
Interval Test Dynamic blockInterval Test DynamicDetermine if signal is in specified interval
Logical Operator blockLogical OperatorEffectuer une opération logique spécifiée sur l’entrée
Relational Operator blockRelational OperatorPerform specified relational operation on inputs
Shift Arithmetic blockShift ArithmeticShift bits or binary point of signal