convert time axis set in 10 day cycles to days?

3 ビュー (過去 30 日間)
Michael
Michael 2014 年 7 月 29 日
コメント済み: Michael 2014 年 7 月 29 日
I need to convert my time vector t = 723 x 1 in the format of 10-day cycles into just days, still keeping the same 723 size.
the time data looks as follows:
1993.0145264
1993.041626
1993.0688477
1993.0959473
1993.1231689
1993.1502686
1993.1774902
1993.2045898
1993.2318115
1993.2590332
1993.2861328
1993.3133545
1993.3404541
etc. etc...
I need this for calculating harmonics...
thanks, Michael
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 29 日
What does that mean?

サインインしてコメントする。

採用された回答

dpb
dpb 2014 年 7 月 29 日
Presuming from the format it is year.fractionaldays
>> diff(t)
ans =
0.0271
0.0272
0.0271
0.0272
0.0271
0.0272
0.0271
0.0272
0.0272
0.0271
0.0272
0.0271
which shows is a constant dt. Thus, you can simply again use linspace with an arbitrary starting value and whatever units for delta-t desired over the length of the series. The actual values are immaterial.
  1 件のコメント
Michael
Michael 2014 年 7 月 29 日
thanks dpb!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by