I want to let $\vec y$ become $\vec u_b \ \rho_b \ \vec y $ and $\vec u_c \ \rho_c \ \vec y $, after a series matrix multiplication,but i am not sure if my matrix multiplication is right or not.
$$ \mathbf u \mathbf \rho \mathbf y=\begin{bmatrix} \vec u_b & 0 \\ 0 & \vec u_c \\ \end{bmatrix} \begin{bmatrix} \rho_b & 0 \\ 0 & \rho_c \\ \end{bmatrix} \begin{bmatrix} \vec y & 0 \\ 0 & \vec y \\ \end{bmatrix}= \begin{bmatrix} \vec u_b \rho_b \vec y & 0 \\ 0 & \vec u_c \rho_c \vec y \\ \end{bmatrix} $$
Is this calculation right?If it is wrong,how do i improve it? I usually multiply the matrix whose elements are all scalar,but now their element are scalar and vector,so i am not sure this is right or wrong
By the way,$\vec u_b$ and $\vec u_c$ are $1$ by $N$ vector ,$\rho_b$ and $\rho_c$ are both scalar,$\vec y$ is a $N$ by $1$ matrix
$\mathbf u$ is $2$ by $N+1$ matrix,and $\mathbf y$ is $N+1$ by $2$ matrix.
It seems that there is something wrong,but i don't know how to improve this