putting column vectors into a table

20 visualizaciones (últimos 30 días)
Shafiqullah Shah
Shafiqullah Shah el 22 de Abr. de 2018
Comentada: Walter Roberson el 22 de Abr. de 2018
If i have various column vectors, such as A = [1;2;3] B = [4;5;6] C = [7;8;9]
how would i put A B & C into a table. Meaning, A is the first column of the table, B is the second column, and C is the third column of the table.

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de Abr. de 2018
table(A, B, C)
  2 comentarios
Shafiqullah Shah
Shafiqullah Shah el 22 de Abr. de 2018
I'm getting an error for indeces not being real positive integers. Some of my column vectors do contain 0.2 or 0.3. So can i still make a table with it?
Walter Roberson
Walter Roberson el 22 de Abr. de 2018

You accidentally created a variable named table

Alternately you might be using a version of MATLAB that is too old to have table objects.

Iniciar sesión para comentar.

Categorías

Más información sobre Tables 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