I want to store an array which changes its size in each iteration of a for loop. For example,
for y=1:100
for x=1:50
.
.
ms(:,x,y) = ans;
.
.
end
end
The 'ans' is a row vector which changes its size in each iteration of y.
How can i store these variable length 'ans' into ms?
When i try to initialize 'ms' as cell, it shows an error saying "Conversion to cell from double is not possible."
What are the ways i can solve this?
Thanks Kind regards