How to add new row to matrix of variable columns

3 visualizaciones (últimos 30 días)
new2matlab
new2matlab el 28 de Oct. de 2019
Respondida: Guillaume el 28 de Oct. de 2019
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.

Respuesta aceptada

Guillaume
Guillaume el 28 de Oct. de 2019
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.

Más respuestas (0)

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by