フィルターのクリア

I have a problem with interpolation.

1 回表示 (過去 30 日間)
David Borrego
David Borrego 2021 年 11 月 18 日
コメント済み: Star Strider 2021 年 11 月 18 日
Hello everyone,
I am looking to obtain values via interpolation to fill a 525600x40 matrix.
Vales from 1-525600 multiples of 60(+1) for every column are known.
I was wondering if anyone could help me on how to fill the matrix by interpolation.
I leave the code below, thanks for the help.
%CÁLCULO DE LA POTENCIA POR MINUTO EN LA PLANTA
POT_MIN=zeros(525601,40);
for i=60:525601
for j=1:40
if mod(i,60)==1
POT_MIN(i,j)=POTENCIAS((i-1)/60,j);
POT_MIN(1,j)=POTENCIAS(1,j);
else
%¿what should i write to fill the whole matrix?
end
end
end

回答 (1 件)

Star Strider
Star Strider 2021 年 11 月 18 日
I have no idea what the data are or the code is doing. The scatteredInterpolant function would be my first recommendation, and griddata my second recommendation.
.
  2 件のコメント
David Borrego
David Borrego 2021 年 11 月 18 日
Hi, thanks.
And how do those functions work??
Star Strider
Star Strider 2021 年 11 月 18 日
My pleasure.
I am not certain how they would work in the applicationin the original post, since am not certian what that code does.
Because of that, it will be necessary to explore them and experiment with them to determine their applicabllity to the vaguely-described problem.
.

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

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by