MATLAB: Creating Dynamic variables for future use

dynamic variables

Hi.
I need to create variables for future use in a loop. For example, for i=1,2,…n, I need to save D1, D2,…,DN, where each Di is a vector with different dimension.
Can anybody help me?
Marco.

Best Answer