I import a matrix from an Excel worksheet. I need the product (not the inner product) from the last row of that matrix times a diagonal matrix. The result should be a new matrix with the diagonal matrix's dimension, but I get instead a 1 row (and n columns) result. However, when I introduce the data of the particular row manually as a vector (c() function), I get the required result.
I have tried multiplying the specific row by the diagonal matrix and vice versa and always get the same (one row) result.