find an equation for the set of coordinates
1 次查看(过去 30 天)
显示 更早的评论
I have the above plot with a different set of coordinates for each object(labeled by different colors). I was wondering if there was a way to find an approximate equation for each object in matlab.
I was thinking about smoothing out the "rougher" parts to make it easier but I'm not sure how to go about doing that. any ideas?
thanks
0 个评论
回答(2 个)
Image Analyst
2014-8-12
How about just taking the average of the coordinates
windowWidth = 5;
newx = conv(x, ones(1, windowWidth)/windowWidth, 'same');
newy = conv(y, ones(1, windowWidth)/windowWidth, 'same');
4 个评论
Image Analyst
2014-8-17
Sorry - I usually use conv2(), which is for 2D arrays (images). For a 1-D signal, you'd use conv().
Ahmet Cecen
2014-8-12
I would use cftool, easier to play around with different fits, and not confined to polynomials.
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!