Combining two matrices into one
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Andrei Bobrov
el 17 de Sept. de 2013
Editada: Andrei Bobrov
el 17 de Sept. de 2013
c = [a,b] % EDIT
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!