The case I am working on is dividing a big three-dimensional array of data that I have collected using good coding practises (etc...) and now I need to segment the layers of this array into separate variables for individual processing elsewhere, I can't call my data like this BigData(:,:,n)
.
So I would like to create a loop where I create new variables like so
for i=1:n
createVariable('user_' i) = BigData(:,:,i);
end
How do I do this without writing n new variables by hand every time?
user_1 = BigData(:,:,1);
user_2 = BigData(:,:,2);
user_3 = BigData(:,:,3);
.
.
.