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

답변 (1개)

VBBV
VBBV 2022년 12월 21일

1 개 추천

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

Jan
Jan 2022년 12월 21일
이동: VBBV 2022년 12월 28일
Or: D = D(:)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Vehicle Dynamics Blockset에 대해 자세히 알아보기

질문:

2022년 12월 21일

이동:

2022년 12월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by