Creating Vector from the following matrix

조회 수: 1 (최근 30일)
Onovo
Onovo 2021년 6월 18일
댓글: Onovo 2021년 6월 18일
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일
B = reshape(A',1,[]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by