How do I output the matrix form like the RHS without the tensor product sign remaining $\otimes$?
I need it for display purpose where I can see easily what the form of the whole product matrix is.
Since you say that you still do not get the output you desire using KroneckerProduct
, I am guessing that you should try restarting the kernel. In any case, this should also fit your needs:
mat1 = Array[m1, {2, 2}];
mat2 = Array[m2, {2, 2}];
KroneckerProduct[mat1, mat2] // MatrixForm
Perhaps
X = IdentityMatrix[2]
Y = Array[y, {2, 2}]
TensorProduct[X, Y] // MatrixForm
$\left( \begin{array}{cc} \left( \begin{array}{cc} y(1,1) & y(1,2) \\ y(2,1) & y(2,2) \\ \end{array} \right) & \left( \begin{array}{cc} 0 & 0 \\ 0 & 0 \\ \end{array} \right) \\ \left( \begin{array}{cc} 0 & 0 \\ 0 & 0 \\ \end{array} \right) & \left( \begin{array}{cc} y(1,1) & y(1,2) \\ y(2,1) & y(2,2) \\ \end{array} \right) \\ \end{array} \right)$
KroneckerProduct
.TensorProduct
is for symbolic manipulation, and you seem to want to actually make the matrices: that is implemented asKroneckerProduct
in Mathematica. $\endgroup$