필터 지우기
필터 지우기

How can I calculate delta T?

조회 수: 8 (최근 30일)
Aaron Zorzi
Aaron Zorzi 2016년 2월 25일
답변: Jos (10584) 2016년 2월 25일
Hello, I've been given some vectors and I'm supposed to calculate delta T for them. It says that to calculate it I need the three time vectors, hour minute and second, but I'm really confused about what I'm supposed to be doing with them. At index 1 it should equal zero, at 2 it should be 20, and at 3 it should be 40.
These are my time vectors:
hour = [9,9,9,9,9,9,9]
minute = [14,14,14,15,15,15,16]
second = [0,20,40,0,20,40,0]
I also have vectors for latitude and longitude, which I've already used to calculate distance and position, but I don't know if those are related to finding delta T. If they are I will post those as well. Thank you for the help.

답변 (1개)

Jos (10584)
Jos (10584) 2016년 2월 25일
Simply convert the time points to seconds
TotalSeconds = second + 60 * minute + 3600 * hour
Then you should take a look at the matlab function diff
help diff
I leave it to you to add the required zero to the beginning ...

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by