combine matrix in matlab

2 vues (au cours des 30 derniers jours)
Chun Yin Lui
Chun Yin Lui le 23 Fév 2021
Commenté : Chun Yin Lui le 23 Fév 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]

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 23 Fév 2021
reshape([A;B],1,[])
  1 commentaire
Chun Yin Lui
Chun Yin Lui le 23 Fév 2021
This works, thank you for help

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by