필터 지우기
필터 지우기

How to create a 3 dimensional matrix from two matrices each of 2 dimensions

조회 수: 2 (최근 30일)
DM
DM 2017년 2월 3일
답변: James Tursa 2017년 2월 3일
I have two matrices A and B each of dimension 4x110. I would like to create a 3 dimensional matrix C of dimension 4x2x110 which is filled by values from A and B. The second dimension is because we have two matrices A and B.

답변 (1개)

James Tursa
James Tursa 2017년 2월 3일
C = reshape([A;B],size(A,1),2,size(A,2));

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by