Reshape panel data to wide using text scan
显示 更早的评论
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
2020-9-26
How did you try loading this to a Matlab variable?
Kwasi Boateng
2020-9-26
编辑:Rik
2020-9-26
回答(1 个)
Rik
2020-9-26
0 个投票
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
2020-9-26
编辑:Rik
2020-9-26
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.)
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
