Simulink
Matlab

Get the parameters of Simulink block

Simulink is a powerful simulating and programming tool. In many applications, we need to write scripts to automate specific tasks. At this time, we often need to obtain or modify the parameter values of the block diagram in command line. get() and get_param() Simulink provides get and get_param functions to Read more…

Simulink
Matlab

Plot bold line for Simulink block mask

Recently I discovered an undocumented feature of Simulink, i.e., plot bold line in block mask’s icon drawing commands. Limitations of the plot in icon drawing commands The plot function in the mask is a reduced plotting function. If we specify the linewidth parameter to it, an error will be prompted: Read more…