Matrix recording zeros

1 次查看(过去 30 天)
Ferd
Ferd 2012-5-17
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?

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by