How to add new row to matrix of variable columns

1 Ansicht (letzte 30 Tage)
new2matlab
new2matlab am 28 Okt. 2019
Beantwortet: Guillaume am 28 Okt. 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.

Akzeptierte Antwort

Guillaume
Guillaume am 28 Okt. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by