I am not able to map a 2D matrix into a 3D, in which I want the particular columns of original 2D matrix to be selected and separated by using 3rd dimension (or in other words breaking a continous data into trials based on columns' selection). I used to get it before, but somehow, I am facing trouble while doing this- it throws an error of "Subscripted dimension error mismatch". But, if I do allotment along the 3rd dimension, size mismatch in other 2 dimensions should not create a problem, this is what I think.
I am now doubtful after getting the dimension mismatch error for it in matlab.
My code is somewhat like this: