Creating Vector from the following matrix

Please Given the following matrix A=[1 2 3; 4 5 6; 7 8 9], I would like to create a column vector B from A, such that B=[1;2;3;4;5;6;7;8;9]. I need this formular to compute large matrix data into a column vector. Thank you.

 채택된 답변

SALAH ALRABEEI
SALAH ALRABEEI 2021년 6월 18일

0 개 추천

B = reshape(A',1,[]);

추가 답변 (0개)

카테고리

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

태그

질문:

2021년 6월 18일

댓글:

2021년 6월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by