I have matrix A which is a 1*11470 struct and each A, for example A(1,1) has two elements, nPoints and matrix. I am going to do some calculations and after these calculations, number of elements in the A.matrix will increase 8 times but A.nPoints will be same. I want to do preallocation for this process but I could not find out how. Could you please help me?
note: To make my question clearer, I added two screenshots. What I want is, for example A(1,2).matrix have 3 elements. After doing certain calculations I am going to have 24 elements inside that matrix and I need to preallocate for example a A2 matrix, which has the same length (1*110470) as A, same size for nPoints but 8 times greater size for A(1,k).matrix.
Regards,

