Getting an Age from Dataset
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm trying to get an age from the following data in a matrix array/table, just unsure how to apply the code to my work. If anyone could help it would be amazing!

3 Kommentare
Star Strider
am 20 Okt. 2021
One possibility —
DOB = datetime(['06 Jul 1951'; '15 Aug 1943'], 'InputFormat','dd MMM yyyy')
CollectionDate = datetime(['01 Mar 2006'; '02 Mar 2006'], 'InputFormat','dd MMM yyyy')
Age = caldiff([DOB CollectionDate], {'years' 'months' 'days'}, 2)
.
Antworten (1)
Arunoda shehani
am 26 Mai 2023
matlab code to determine birthday when enter the NIC number
0 Kommentare
Siehe auch
Kategorien
Mehr zu Birthdays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!