Logic and Bit Operations
R2026a逻辑或位运算模块,例如 Logical Operator 和 Relational Operator
使用 Logic and Bit Operations 库中的模块来检测信号值的变化,对输入执行逻辑或关系运算,并将位转换为整数。
模块
| Bit Clear | Set specified bit of stored integer to zero | |
| Bit Set | 将存储整数的指定位设置为 1 | |
| Bit to Integer Converter | Map vector of bits to corresponding vector of integers | |
| Bitwise Operator | 对输入执行指定的按位运算 | |
| Combinatorial Logic | 实现真值表 | |
| Compare To Constant | 确定信号与指定常量的比较方式 | |
| Compare To Zero | 确定信号与零的比较方式 | |
| Detect Change | 检测信号值的变化 | |
| Detect Decrease | 检测信号值的减小 | |
| Detect Fall Negative | 当信号值下降到严格值时检测下降沿,并且其先前的值非负 | |
| Detect Fall Nonpositive | Detect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive | |
| Detect Increase | 检测信号值的增长 | |
| Detect Rise Nonnegative | 当信号值增加到非值时检测上升沿,并且其先前的值严格为负 | |
| Detect Rise Positive | 上升沿检测,当信号值从上一个严格意义上的负值变为非负值时 | |
| Extract Bits | 输出从输入信号选择的连续位 | |
| Float Extract Bits | Extract bits from floating-point input samples (自 R2023a 起) | |
| Integer to Bit Converter | Map vector of integers to vector of bits | |
| Interval Test | 确定信号是否在指定区间中 | |
| Interval Test Dynamic | 确定信号是否在指定区间中 | |
| Logical Operator | 对输入执行指定的逻辑运算 | |
| Relational Operator | 对输入执行指定的关系运算 | |
| Shift Arithmetic | 移动信号的位或二进制小数点 |