Concatenate 8X4 matrix in 16X2 matrix in matlab

3 views (last 30 days)
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

Accepted Answer

ME on 2 Dec 2019
This should do it:
B = [A(:,1:2); A(:,3:4)]
ME on 2 Dec 2019
Not a problem. If this answer solved your question then could you possibly accept it?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by