I have built a simulink model where I needed to use a block gain as a matrix gain, when the model was runing an error apeared "error of dimension" so I want to know the format of setting matrix elements in the block.thanks.
Easy! In Simulink, data are arranged normally in a column, so change the multiplication type through the gain options: element-wise, u*k , k*u , or matrix and check the result!