What is the clean way to preallocate rows in a table?
Here is an example to illustrate what I would like:
a = {'a'}b = 1a = table( a, b )a(10,:) = %Some placeholder value to ensure table is extended to be 10 rows
In the example above, the table is trivial, so I could write out the following line. But since the types are known, then MATLAB could in theory just fill this in by itself.
a(10,:) = {{[]}, 0}
Best Answer