Hey @Utsav, When you import data from Excel using xlsread in MATLAB, and the date information is stored as text, you need to convert these text representations into MATLAB's datetime format to extract the day, month, or other components. Here’s how you can do it:Steps to Extract Day Information
- Read the Data: Use xlsread to import the data.
- Convert Text to Datetime: Use datetime to convert the text data into datetime objects.
- Extract Day Information: Use the day function to extract the day from the datetime objects.
Please refer to below documentation on datetime and day.