Its just necessary to enter with the matrices.
Typing mpcprops you can see:
Alternative weighting: using the syntax Weights.MV={R}, where R is a Nu x Nu
symmetric and positive semi-definite matrix, one can specify a matrix weight R,
which is constant over the prediction horizon (similar syntax for Weights.MVRate and Weights.OV)
Thanks.