Hi all, I am trying to read some data collected. I made a mistake and inputted 07/24/2023 instead of 07/23/2023. Now the matlab date which is in a number format is unable to correctiy read the data based on these timestamps. Please, I will apprciate it if any one can help me adjust the matlab date 07/23/2023 to 07/24/2023 or any suggestions will be appreciated. NOTE: the malab date is in a number format eg. 7.390905000610648e+05
Kshitij Singh answered .
2025-11-20
datenum('07/23/2023')
ans = 739090
datenum('07/24/2023')
ans = 739091
num = 739090.5000610648; datetime(num,'ConvertFrom','datenum') ans = datetime 23-Jul-2023 12:00:05
num = num+1; datetime(num,'ConvertFrom','datenum') ans = datetime 24-Jul-2023 12:00:05
(If you want to go from 07/24/2023 to 07/23/2023, you would subtract 1. Your question says you want to do both.)