필터 지우기
필터 지우기

matrix reshaping

조회 수: 4 (최근 30일)
athpapa -
athpapa - 2011년 11월 17일
Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you...

채택된 답변

bym
bym 2011년 11월 17일
reshape(A',1,[])

추가 답변 (2개)

Honglei Chen
Honglei Chen 2011년 11월 17일
You can try
B = A.';
B = B(:).';

athpapa -
athpapa - 2011년 11월 17일
thank you very much!

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by