MATLAB Answers

how do you stack (using colon) a 3 dimensional matrix

7 views (last 30 days)
Hi
I have a 3 dimensional matrix A(:,:,K) which I want to stack all the columns per value of K
I haven't found the coding for a 3 dimensional matrix (otherwise I expect to have used B = A(:) which in this case doesn't seem to work

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 20 Jun 2012
reshape(A, [size(A,1) * size(A,2), size(A,3)])

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by