Concatenate 8X4 matrix in 16X2 matrix in matlab

1 vue (au cours des 30 derniers jours)
Juan Pablo
Juan Pablo le 2 Déc 2019
Commenté : ME le 2 Déc 2019
Hi there, I want to concatenate a 4 columns matrix into 2 column matrix, for example, I have these variables:
I want to get this arrange:
How I can get that? Thanxs for your help

Réponse acceptée

ME
ME le 2 Déc 2019
This should do it:
B = [A(:,1:2); A(:,3:4)]
  2 commentaires
Juan Pablo
Juan Pablo le 2 Déc 2019
Thanks for your help!
ME
ME le 2 Déc 2019
Not a problem. If this answer solved your question then could you possibly accept it?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices 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