fit curves by smoothingspline
2 views (last 30 days)
Show older comments
I have a sets of data, and I want to plot them in dot then fit them with curve, but the fitted curve doesnt seems fit very well(the curve is so far away from realy point. I'm using the code below for fit, did I make some mistake?
clear all
load positiontest.mat
xx;
Pattern3;
curve3 = fit(xx,Pattern3,'smoothingspline');
figure,
plot(curve3,xx,Pattern2)
0 Comments
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!