How to use harmonic fitting method
30 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Please, how can I use Harmonic fiting for the attached data to get a smooth fit.
5 件のコメント
採用された回答
Sam Chak
2023 年 9 月 20 日
I'm interpreting your 'Harmonic' model as the 'Sum of Sine' model. If this is not the case, then you will need to create a custom nonlinear model that suits the name "Harmonic" using the fittype() function.
y = load('darta1.txt');
x = linspace(10, 60, numel(y));
[f, gof] = fit(x', y, 'sin3')
plot(f, x, y), grid on,
legend('data', 'Sum of Sine (type-3)', 'location', 'best')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!