You will have to expand the matrix multiplication on a row-by-row basis. This can be implemented via Function blocks or, for more complex computations, in a C-Script block. Please take a look at how the Transformation blocks are implemented in the PLECS Control library (Subsystem -> Look under mask).