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
Try using eval() - but as you said it is seen as a very bad practice. If you still want to use this, it is straight forward like:
for i = 1:n eval(['user_',num2str(i),' = BigData(:,:,',num2str(i),');']); end