Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

Logic and Bit Operations

논리 연산 또는 비트 연산 블록(예: Logical Operator 및 Relational Operator)

Logic and Bit Operations 라이브러리의 블록을 사용하여 신호 값의 변화를 감지하고 입력에 대해 논리 연산과 관계 연산을 수행하며 비트를 정수로 변환합니다.

블록

Bit Clear저장된 정수의 지정된 비트를 0으로 설정
Bit Set저장된 정수의 지정된 비트를 1로 설정
Bit to Integer ConverterMap vector of bits to corresponding vector of integers
Bitwise OperatorSpecified bitwise operation on inputs
Combinatorial LogicImplement truth table
Compare To Constant신호와 지정된 상수를 비교하는 방법 결정
Compare To Zero신호를 0과 비교하는 방법 결정
Detect Change신호 값의 변경 감지
Detect Decrease신호 값의 감소 감지
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 Increase신호 값의 감소 감지
Detect Rise NonnegativeDetect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative
Detect Rise Positive신호 값이 순양수 값으로 증가하고 이전 값이 양수가 아닌 경우 상승 에지 감지
Extract BitsOutput selection of contiguous bits from input signal
Float Extract BitsExtract bits from floating-point input samples (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 Operator입력에 대해 지정된 논리 연산 수행
Relational Operator입력에 대해 지정된 관계 연산 수행
Shift ArithmeticShift bits or binary point of signal