Reformatting columns and rows of a table

4 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Agriculture 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by