In MATLAB, I am given a cell array M with lots of good stuff I need to put into many differently named matrices. I need to do this sort of thing:
matrix_name_list={'name1' 'name2' 'name3'};
lasti=length(matrix_name_list);
for i=1:lasti
matrix_name=matrix_name_list{i};
matrix_name=M{i};
end
I.e. I need to change the name of the matrix that is receiving the data in each loop. Any way I can do this?