Hi everyone,
i have a problem with constructing a big matrix from small matrices. could you please help me figure out?
my problem is:
i now have 200 matrices (1000 x 5) => i now want to build them in a big matrix (1000x1000 =(5 x 200)) just store the column of small matrices in to columns of big matrix. as my following code.
So could you take a look and help me figure out?
for(m=1;m<=200;m++){
for(j=0; j<=d+8; j++) {
for(i=0; i<=l+8; i++) {
for(k=1; k<=TSpcs+3; k++){
U2[(m-1)*TSpcs +k][i][j] = U1[m][k][i][j] - U_mean[k][i][j];
}
}
}
}
Thanks for your kindly and help,
BOMTK,