I'm trying to add the 2d array cycle to a 3d array cycle_mat. i is a variable that changes after each loop iteration. I'm getting the following error:
Subscripted assignment dimension mismatch.
Error in The_Code (line 622) cycle_mat(:,:,i)=cycle;