Simulink学习之Combinatorial Logic模块
模块概要
模块名称:Combinatorial Logic
模块所在库:Simulink/Logic and Bit Operations
模块功能:输入N维Boolean数据,查表输出与之对应的包含2^N个Boolean数据的数组
示例
1.此示例中Combinatorial Logic模块共有3维输入,因此可输出2^3=8组2位Boolean数组。
2.输入输出对应
输入 | 输出 |
---|---|
0 0 0 | [0,0] |
0 0 1 | [0,1] |
0 1 0 | [1,0] |
0 1 1 | [1,1] |
1 0 0 | [0,0] |
1 0 1 | [0,1] |
1 1 0 | [1,0] |
1 1 1 | [1,1] |
注意事项
1.Combinatorial Logic模块的输入必须是Boolean类型的数据