GUI birth calculator code ?

조회 수: 15 (최근 30일)
salar rohani nejad
salar rohani nejad 2021년 3월 17일
답변: Sameer Ahmad 2023년 2월 9일
Hi everyone
i have a project that i have an input of birth date and my output is the age of the memmber in second , and i must do it in GUI with matlab
can i have a help on the code ? thank you so much

답변 (2개)

Harshit Desai
Harshit Desai 2021년 3월 17일
I understand that you want to create a Basic GUI for a project to calculate the age of a person in Seconds(unit of time measurement)
To Help you get started with the GUI here is a short youtube video which descibes how to build apps in MATLAB. Its really cool and I think you should give it a go. --> https://youtu.be/nb0jHVXKY2w
if you are just looking for converting the input as Birth Date to age in Seconds via script. Here is the code that may help.
birthDate = '2021-03-16';
time = datevec(birthDate);
CurrentTime = clock;
Age = seconds(etime(CurrentTime,time)) % time in seconds
The documentation to the Functions I have used are here -->
  댓글 수: 1
salar rohani nejad
salar rohani nejad 2021년 3월 17일
thank you so much , actully i dont have enoghe time to learn it :( dou to a problem , i need to do this homework till tomorrow and i want a full code :( but thank you so much

댓글을 달려면 로그인하십시오.


Sameer Ahmad
Sameer Ahmad 2023년 2월 9일
birthDate = '2021-03-16'; time = datevec(birthDate); CurrentTime = clock; Age = seconds(etime(CurrentTime,time)) % time in seconds

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by