I have a matrix (Q) 1140 by 330. I have to divide the matrix into 60 matrices 19 by 330. and then calculate the correlation coefficient of each one. my code is in the below:
splitQ = mat2cell(Q, ones(1, 60) * 19, 330); for i=1:60correlationCoefficient= corrcoef(splitQ{i,1});endNow I need to save all the resulted matrices from the loop in a new matrix. but the loop save the final valu!does anyone know how to do it?
Best Answer