Matrix recording zeros
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
Walter Roberson
2012 年 5 月 17 日
Use call arrays. Numeric arrays cannot have irregular sizes, but the entries of cell arrays can be different sizes.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!