Build a modified truth table of several variables

조회 수: 2 (최근 30일)
nedo nodo
nedo nodo 2012년 11월 28일
Hi,
I would like to generate a "truth table" in which are present only certain configurations. Moreover, the truth table must be build block by block where each block has different dimension. As example, if I have two variables x,y of cardinality 2,3 then I need to build the truth tables as: if true x -> 0 1 1 0 end if true y -> 0 0 1 0 1 0 1 0 0 end the final truth table is the composition of the previous one: 0 1 0 0 1 0 1 0 1 0 0 1 1 0 0 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 I have no idea about I can do it in efficient way. I thought about a variable number of nested loop to build the table. Thank you for help.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by