Let's say the column matrix is: A = 2 6 7 3 8 3 2 9 7 5 4 1 And I need to obtain final result as A = 2 6 7 3 8 3 2 9 7 5 4 1 Can I know the way to split in this way?
Kshitij Singh answered .
2025-11-20
A = [2 6 7 3 8 3 2 9 7 5 4 1]'
A = 12×1 2 6 7 3 8 3 2 9 7 5
B = [A(1:2:end) A(2:2:end)]
B = 6×2 2 6 7 3 8 3 2 9 7 5 4 1