Combining two matrices into one

15 次查看(过去 30 天)
I need to combine the two matrices a and b to yield c.
a = [1;0] and b = [0;1]
and for c I need to matrix to look like this c = [1,0;0,1] not [1;1]
I was using c = a + b, is there a way I can combine the matrices without adding the numbers together?
Thank you for your time.

采纳的回答

Andrei Bobrov
Andrei Bobrov 2013-9-17
编辑:Andrei Bobrov 2013-9-17
c = [a,b] % EDIT
Please read about concatenating arrays

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by