필터 지우기
필터 지우기

Changing the Structure of a Matrix.

조회 수: 1 (최근 30일)
Jack
Jack 2015년 3월 19일
답변: Sean de Wolski 2015년 3월 19일
Hi,
If I have a matrix of lets say [4x3] i.e
1 2 3
4 5 6
7 8 9
10 11 12
how can I change this to a [12x1] matrix i.e
1 2 3 4 5 6 7 8 9 10 11 12
Thanks.

채택된 답변

Sean de Wolski
Sean de Wolski 2015년 3월 19일
y = reshape(x.',1,[])

추가 답변 (0개)

카테고리

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