How to extract month-wise data from a single column?
3 次查看(过去 30 天)
显示 更早的评论
I have an excel file, containing monthly data of several years in one single column. Now i have to extract the data for perticular month (say February month from all the years). I want to write a code which can extract the data in aforementioned manner.
I have attached the excel file for better understanding. Descroption of data: The excel file contains the data values in single column. There are total 904 rows (indicating 904 months).
Now i want to extract the February month data from all the years. How can i do it?
I have attached the data file in excel format.
0 个评论
采纳的回答
Dyuman Joshi
2023-6-2
编辑:Dyuman Joshi
2023-6-7
Make sure that the excel is present in the current directory and MATLAB has access to it.
file = readmatrix('Wind1948to2023.xlsx');
FebData = file(2:12:end)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!