I have a latitude vector and I need to rotate it throughout a time t.

2 ビュー (過去 30 日間)
Ainoa García
Ainoa García 2017 年 10 月 4 日
回答済み: Mischa Kim 2017 年 10 月 4 日
Hello everybody! I need to simulate the Earth rotation, that is, I have a vector with the lattitudes (LatE = 0:0.5:90) and longitude as LatE = 0. I need to rotate the LatE points around the Earth, during a time t (defined). I need to save the differents points (LatE,LonE) throughout the time t. Latitudes are always the same but I don't know who to change the longitudes.
Thank you in advance

回答 (1 件)

Mischa Kim
Mischa Kim 2017 年 10 月 4 日
Ainoa, how about
dt = 60*60; % dt = 1 hr
t = 0:dt:24*60*60; % time vector spanning one full day
omega = 360/(24*60*60); % angular velocity of earth
LonE = omega*t

カテゴリ

Help Center および File ExchangeEarth and Planetary Science についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by