how to append my data?

1 view (last 30 days)
PARVATHY NAIR
PARVATHY NAIR on 21 Dec 2022
Moved: VBBV on 28 Dec 2022
let my data be
1 1
2 1
2 2
2 3
3 4
4 5
5 6
6 6
and i want it as
1
2
2
2
3
4
5
6
1
1
2
3
4
5
6
6

Answers (1)

VBBV
VBBV on 21 Dec 2022
D = [1 1
2 1
2 2
2 3
3 4
4 5
5 6
6 6]
D = 8×2
1 1 2 1 2 2 2 3 3 4 4 5 5 6 6 6
D = reshape(D,[],1)
D = 16×1
1 2 2 2 3 4 5 6 1 1
  1 Comment
Jan
Jan on 21 Dec 2022
Moved: VBBV on 28 Dec 2022
Or: D = D(:)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!