Matrix recording zeros

2 visualizaciones (últimos 30 días)
Ferd
Ferd el 17 de Mayo de 2012
Good Morning,
For analyzing purpose, I am trying to record every iteration of the loop in its resultant matrix. However, matlab inserts zeros in columns where there should not be zeros in the previous loop count in iterations where that resultant vector length is small. I am thinking, matlabmust be having some equal row criteria for every iteration. Is there a way where I can just take in the actual vector length recorded in the matrix for every i-count?

Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de Mayo de 2012
Use call arrays. Numeric arrays cannot have irregular sizes, but the entries of cell arrays can be different sizes.
  1 comentario
Ferd
Ferd el 17 de Mayo de 2012
Thanks!
Just curious, any reason why numeric arrays must be of equal sizes though?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices 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