フィルターのクリア

Interpolation of hourly data into minutes

2 ビュー (過去 30 日間)
LamaObecna
LamaObecna 2016 年 11 月 10 日
コメント済み: LamaObecna 2016 年 11 月 10 日
Hello again, I am having a trouble with modifying my data. I have hourly data of photovoltaic production during whole year, so it's 8760 values. I need to transfer them into minute data => 525 600 values. Here is the sample of first 24 hours values. e.g. value 152.03 will be separated into 60 values of 2.53, 0 into 60x0 and so on..
0
0
0
0
0
0
0
0
0
152.03
79.284
63.47
316.18
65.074
270.32
168.44
0
0
0
0
0
0
0
0
Can you help me with this? Thank you.

採用された回答

Andrei Bobrov
Andrei Bobrov 2016 年 11 月 10 日
編集済み: Andrei Bobrov 2016 年 11 月 10 日
here a - your hourly values.
out = kron(a,ones(60,1)/60)
  1 件のコメント
LamaObecna
LamaObecna 2016 年 11 月 10 日
Thank you very much, works fine.

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

その他の回答 (1 件)

Steven Lord
Steven Lord 2016 年 11 月 10 日
A slightly smaller example that illustrates the general technique:
y = repelem(1:4, 3)/8
The output is a twelve element vector that you can think of as having four [= length(1:4)] groups of three elements where the first group contains 1/8, the second group 2/8, etc.

カテゴリ

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