Replicating Matlab YEARFRAC function in excel or vice versa
Ältere Kommentare anzeigen
I am wondering why the following code in matlab generate
yearfrac(datenum('31/05/2015','dd/mm/yyyy'),datenum('07/02/2025','dd/mm/yyyy')) = 9.672131147540984
yearfrac(datenum('31/05/2015','dd/mm/yyyy'),datenum('07/02/2025','dd/mm/yyyy'),12) = 9.690410958904067
However, in excel, using actual/actual, it gives a slightly different answer?
YEARFRAC(31/05/2015,07/02/2025,1) = 9.69138875062
Thanks
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!