Extracting data from .mat file and then adding up results to form a new .mat file
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a query regarding data extraction. I got a .mat file with data (365rows representing days, 12columns representing hours). I would like to read these data (I did that). Concern is that for each day, I want the 12 values as columns so that I can have 365x12 rows and 2 columns.
Any help would be highly appreciated.
Thanks
1 个评论
采纳的回答
Azzi Abdelmalek
2016-2-14
编辑:Azzi Abdelmalek
2016-2-14
If A is your matrix, you can get one column with reshape function
B=reshape(A',[],1)
In your question, I don't know what the second column is ?
7 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Import, Export, and Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!