This is what my variable, call it A, looks like in matlab (only 10 cells): enter image description here Then, this is what the first cell 1,1 looks like (goes on for 20 cells):