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,[]);
  댓글 수: 1
Onovo
Onovo 2021년 6월 18일
Thank you very much salah

댓글을 달려면 로그인하십시오.

추가 답변(0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by