Matrix recording zeros

조회 수: 2 (최근 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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by