Reformatting columns and rows of a table

5 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2021 年 1 月 23 日
コメント済み: Star Strider 2021 年 1 月 23 日
Suppose I have a table
date NY Chicago SF
---------------------------
1/1/2020 10 15 20
1/2/2020 15 20 10
I want to reformat a table into the form
date city
-----------------------
1/1/2020 NY 10
1/2/2020 NY 15
1/1/2020 Chicago 15
1/2/2020 Chicago 20
Please advise.

採用された回答

Star Strider
Star Strider 2021 年 1 月 23 日
Perhaps stack? Otherwise unstack? (Not clear on the result you want.)
  4 件のコメント
alpedhuez
alpedhuez 2021 年 1 月 23 日
Done
Star Strider
Star Strider 2021 年 1 月 23 日
Great!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAgriculture についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by