Elegant way of storing multiple vectors int to a single matrix in column wise

조회 수: 3 (최근 30일)
Eg 3 vectors A=[1,2,3 ] B=[4 5 6] C=[7 8 9]
Output :
Matrix M=( 1 2 3; 4 5 6; 7 8 90)
How to convert muliple array into single matrix form.
Thank you

답변 (1개)

Santos García Rosado
Santos García Rosado 2021년 4월 7일
Matrix = cat(1,A,B,C)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by