combine matrix in matlab

5 visualizaciones (últimos 30 días)
Chun Yin Lui
Chun Yin Lui el 23 de Feb. de 2021
Comentada: Chun Yin Lui el 23 de Feb. de 2021
I need to combine the two matrices a and b to yield c
A = [1,2,3] & B = [4,5,6]
C = [1,4,2,5,3,6]

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 23 de Feb. de 2021
reshape([A;B],1,[])
  1 comentario
Chun Yin Lui
Chun Yin Lui el 23 de Feb. de 2021
This works, thank you for help

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by