Split one matrix to 2 matrix

8 views (last 30 days)
Hello, I have matrix called A 74X2 and I need 2 Matrix B,C 74X1 each one.
How I can split matrix A to B (column 1 of A) and C (column 2 of A)?
Thank you!

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 3 Jan 2016
Edited: Azzi Abdelmalek on 3 Jan 2016
B=A(:,1)
C=A(:,2)
Read the documentation

More Answers (0)

Categories

Find more on Matrices and Arrays 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!