Reshape panel data to wide using text scan

조회 수: 4 (최근 30일)
Kwasi Boateng
Kwasi Boateng 2020년 9월 26일
댓글: Rik 2020년 9월 26일
I have a panel data and want to group each the last five columns according to the dates and ID names in the first column
  댓글 수: 2
Rik
Rik 2020년 9월 26일
How did you try loading this to a Matlab variable?
Kwasi Boateng
Kwasi Boateng 2020년 9월 26일
편집: Rik 2020년 9월 26일
i used textscan, but is not working for me
Want to bring the #RIC as columns and group the rest of the data according to date under these columns

댓글을 달려면 로그인하십시오.

답변 (1개)

Rik
Rik 2020년 9월 26일
If you want to read an Excel file you can use the aptly named xlsread function. The second or third output is probably what you are looking for.
  댓글 수: 2
Kwasi Boateng
Kwasi Boateng 2020년 9월 26일
편집: Rik 2020년 9월 26일
The second attachement is the format of the data, and I want it in a wider form where I can group all the various RIC according to the date
I want the data in this form
Rik
Rik 2020년 9월 26일
Do you want to process your data inside Excel? Because then you are on the wrong website.
Do you want the result to be written back to Excel? Because you can do that: xlswrite.
What kind of processing do you want? Do you want to sort your data, or do you mean something else by grouping?
(Also, you don't need to post multiple comments, you can simply edit your last comment. As long as there is no newer comment that will not cause any confusion.)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by