Analyzing dates from excel file
古いコメントを表示
I have a very large excel file in which column A contains information for every minute of every day for a year. Each row increases by 1 minute starting from Jan 1st at midnight. How do I import the file into matlab and analyze the data in columns B & C on a month-by-month and week-by-week basis? I know how to write the code to do the analyzing that I need, but I am unsure how to have it go through the excel file to check for dates. Any help would be greatly appreciated!
回答 (1 件)
Abhishek PH
2016 年 9 月 1 日
If it is an excel file it can be easily read by using this code
a = xlsread('Filename.xlsx');
A = a(:,1); % Reads column 1
Similarly other columns can be read. As for the week and monthly readings, you can read the data like this:
week = a(1:10080,1) % Reads week data for 1 week : 7*24*60 = 10080
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!