Reformatting columns and rows of a table

조회 수: 4 (최근 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 CenterFile Exchange에서 Agriculture에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by