Matrix recording zeros
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 17 Mai 2012
Use call arrays. Numeric arrays cannot have irregular sizes, but the entries of cell arrays can be different sizes.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!