To modify the names of a Bus Creator block's input signals from the command line, set the block's 'Inputs' parameter to the desired signal names, using SET_PARAM.
Note that you can set this parameter either to the number of input signals, which will automatically turn on the 'Inherit bus signal names from input ports' option, or to the names of input signals, which turns on the 'Require input signal names to match signals below' option.
For more information on the 'Input' parameter of the Bus Creator block see the documentation section titled: 'Block-Specific Parameters'
To open this document automatically execute the follwoing in a R2008a MATLAB command window
web([docroot '/toolbox/simulink/slref/f23-20073.html'])
For example, observe the outputs and the differences between the following two function calls:
set_param(gcb,'Inputs','2')
set_param(gcb,'Inputs','''my_first_signal'',''my_second_signal''')
Best Answer