Equalizing the size of arrays in a cell
Show older comments
Hi everyone,
I have 300 sets of data held in a 1 by 300 cell. The data is of unequal length and as such, it is difficult to change the cell to an array as I would love to. Instead, I would like to make the size of the arrays to be uniform for that to work. The array dimensions should be (1000 by 1) but some of the arrays have 400, 230 etc. I would therefore like to fill the arrays with zeros for the parts that there is no entry to make them have a length of 1000. Is there anyone with an idea?
Accepted Answer
More Answers (1)
Categories
Find more on Multidimensional Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!