Hello all,
If I have a 1xLxN matrix and would like to reshape it in order to get a LxN matrix, how I can do that? In particular, suppose I have a 1x2x4 matrix a:
a(1,:,1)=[0 0]; a(1,:,2)=[0 1];a(1,:,3)=[1 1];a(1,:,4)=[0 1];
and I would like to get a 4x2 matrix of [0 0;0 1;1 1;0 1]? Thanks.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 21일
편집: Azzi Abdelmalek 2015년 6월 21일

1 개 추천

Edit
squeeze(a).'

댓글 수: 1

Walter Roberson
Walter Roberson 2015년 6월 21일
Azzi, I'm not sure why you put the conjugate transpose in?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

Mnr
2015년 6월 21일

편집:

2015년 6월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by