there are age calculator functions available in the MATHWORKS' MATLAB community but are an embellished version i.e they are in the form of a GUI. But not everyone needs a GUI. Hence, I made a function which can be used within a code
INPUTS: 2 1x3 dimensional double arrays (a) date of birth [dd , mm , yyyy] (b) date of examination [dd , mm , yyyy]
OUTPUT: 1 1x3 dimensional double array [years,months,days]
I tried to write a function but it was getting complicated and not all cases were being covered. So I took inspiration from the following source
引用格式
Anmol Pardeshi (2025). ageCalculator - nonGUI (https://www.mathworks.com/matlabcentral/fileexchange/78718-agecalculator-nongui), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |