Build Truth tables with MATLAB code

Hi,
I wrote a MATLAB fuction which allows to model, in automatic way, boolean equations (written in a graphical language) in Simulink blocks with logical gates using the commands: add_block, add_line and set_param.
Now I want to model the same boolean equations using the truth tables... which MATLAB commands I must to use?
Anyone knows the MATLAB code which allows to build, in automatic way, a truth table?
Links to other discussions are good.
Thanks in advance, best regards
Andrea

 採用された回答

Ilham Hardy
Ilham Hardy 2015 年 2 月 17 日

0 投票

Do you want to use Truth table in Simulink? Perhaps this link can help you, http://nl.mathworks.com/help/simulink/slref/combinatoriallogic.html

1 件のコメント

Andrea
Andrea 2015 年 2 月 17 日
Hi Ilham,
thanks for you reply, but my MATLAB function belongs to a framework. In the framework I model, in Simulink blocks, a set of boolean equations.
Inside each Simulink block the equation is represented with logical gates. After all equations have been modelled I build input and output ports and link them to the Simulink blocks.
Now I want to replace the Simulink blocks with Stateflow/Truth Tables blocks; like shown here http://it.mathworks.com/help/stateflow/ug/build-model-with-stateflow-truth-table.html

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgrammatic Model Editing についてさらに検索

質問済み:

2015 年 2 月 17 日

コメント済み:

2015 年 2 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by