I have a matrix Z 6x100x6 and I would like to store all the elements from the 6th and the 100th column them in vector. So I do
B=(6,100,:)
Matlab the generates again a multidimensional matrix 1x1x6. instead of vector 1×6. Whereas
B=(6,:,1)
will return a vector 1×100 with 100 elements of the first row of the first page. What I am I doing wrong? Thank you
Best Answer