how to append my data?

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 ExchangeVehicle 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