How to print arrays in a table?

Hi, I am using a for loop in matlab to calculate a multiplication of matrix. At each time the loop is executed, it prints out an array of 28x1 in one column. But, I want to print all arrays in a table, meaning the 1st loop gives me the 1st column, the 2nd loop gives me the 2nd column in the table, etc. I would like to know how to do so? Thank you!

Respuestas (1)

Martin Schätz
Martin Schätz el 18 de Oct. de 2015

0 votos

Hi, without some code example i can just sugest that you can add your vector at the end of some array, and then print the array.
Post your code and I can help you more.

2 comentarios

Jackson Chan
Jackson Chan el 19 de Oct. de 2015
Oh, thank you! I already figured it out! :)
Shyam Krishna Jeyachandren
Shyam Krishna Jeyachandren el 26 de Mzo. de 2019
HI I am trying to do the same. Can you let me know how to proceed?
I have a bunch of arrays and want to display them coloumn wise with each iteration using for loop (Meaning coloumn 2 has to be displayed in 2nd iteration, column 3 in 3rd iteration and so on). But the variable name is displayed along with the output for each iteration. I am not sure on how to limit that to the frst time only.
Can you help me in this regard.

Iniciar sesión para comentar.

Categorías

Productos

Etiquetas

Preguntada:

el 17 de Oct. de 2015

Comentada:

el 26 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by