フィルターのクリア

Linear interpolation for 60 points

1 回表示 (過去 30 日間)
Panouoilis
Panouoilis 2013 年 7 月 29 日
I have a question and i would appreciate it if someone can help.
I have a matrix that contains 840 values, which represent the power output of a PV during a day for every minute. Is there any way to apply linear interpolation in order to find the power output for every second?
Graphically, i can draw the lines between every two minutes, divide each line to 60 points and take the values that i want. Is there any function in matlab for that?
Thank you!

採用された回答

Jan
Jan 2013 年 7 月 29 日
編集済み: Jan 2013 年 7 月 29 日
This is a job for interp1:
data = rand(1, 840);
minute = 1:840;
second = 1:1/60:840;
data2 = interp1(minute, data, second);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by