trigonemetric function fitting using matrice in matlab
1 回表示 (過去 30 日間)
古いコメントを表示
hi
please explain me these line of codes from the matlab documentation:
Simulating Electricity Prices with Mean-Reversion and Jump-Diffusion
why do we have to put t in matrice function when we have f(t)= s1*sin(2.pi.t)+s2*cos(2.pi.t)+s3*sin(4.pi.t)+s4*cos(4.pi.t)+s5 ?
% Calibrate parameters for the seasonality model
seasonMatrix = @(t) [sin(2.*pi.*t) cos(2.*pi.*t) sin(4.*pi.*t) ...
cos(4.*pi.*t) t ones(size(t, 1), 1)];
C = seasonMatrix(PriceTimes);
seasonParam = C\logPrices;
3 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!