How to join two matrix arrays together

4 vues (au cours des 30 derniers jours)
Moe
Moe le 29 Juin 2015
Commenté : Adhityan R le 1 Mai 2020
I have two matrices A(i) and B(i) with similar (i) arrays. This i will be vary in each run. For example for i = 3, A and B are:
A = [774 631 584];
B = [19 128 220];
I want matrix C to be:
C = [774,19;631,128;584,220]; % first array in matrix A comes with first array in matrix B

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 29 Juin 2015
Modifié(e) : Azzi Abdelmalek le 29 Juin 2015
  3 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 29 Juin 2015
Adhityan R
Adhityan R le 1 Mai 2020
horzcat(A,B)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by