How to use harmonic fitting method
Show older comments
Hi,
Please, how can I use Harmonic fiting for the attached data to get a smooth fit.
5 Comments
Torsten
on 20 Sep 2023
Where are the values of the variable you want to plot the data against (time or whatever) ?
TTA
on 20 Sep 2023
@TTA, Like this?
y = load('darta1.txt');
x = linspace(10, 60, numel(y));
plot(x, y, 'linewidth', 1.5), grid on
xlabel('x'), ylabel('y')
TTA
on 20 Sep 2023
Torsten
on 20 Sep 2023
Tell us precisely what you define as your approximating "harmonic".
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

