MATLAB: How to add new row to matrix of variable columns

additioncolumnrowrow namevariable namesvector

I have a matrix created with multiple column vectors and am looking for a way to add a row vector to the matrix to include the variable names in the matrix. Not sure how to add a row to a column vector matrix.

Best Answer

You can't add variable names to matrices. Matrices can only contain numbers.
However, you could use a table which are designed explicitly for that.