How to add new row to matrix of variable columns

3 次查看(过去 30 天)
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.

采纳的回答

Guillaume
Guillaume 2019-10-28
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 NaNs 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by