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

2 次查看(过去 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
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