Concatenate 8X4 matrix in 16X2 matrix in matlab

1 view (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
ME on 2 Dec 2019
This should do it:
B = [A(:,1:2); A(:,3:4)]
  2 Comments
ME
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)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!