MATLAB: How to write in a Simulink truth Table, using Matlab script

write in a truth table from matlab sript

Hi,
I would like to make a matlab script which reads an Excel file and then writes in a Simulink truth Table.
My question is how do I write in a Simulink truth Table from script?
Thank you in advance for your answer.

Best Answer

You can use set_param function. Use also get_param to get the different names of your parameters
get_param('Yourmodelname/Truth Table','Dialogparameters')