Reformatting columns and rows of a table

5 Ansichten (letzte 30 Tage)
alpedhuez
alpedhuez am 23 Jan. 2021
Kommentiert: Star Strider am 23 Jan. 2021
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.

Akzeptierte Antwort

Star Strider
Star Strider am 23 Jan. 2021
Perhaps stack? Otherwise unstack? (Not clear on the result you want.)
  4 Kommentare
alpedhuez
alpedhuez am 23 Jan. 2021
Done
Star Strider
Star Strider am 23 Jan. 2021
Great!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Agriculture finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by