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일

0 개 추천

reshape(A',1,[])

추가 답변 (2개)

Honglei Chen
Honglei Chen 2011년 11월 17일

0 개 추천

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

0 개 추천

thank you very much!

카테고리

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

태그

질문:

2011년 11월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by