least square fitting with a data set
이전 댓글 표시
I have a matrix A with first column time, second and third column each x and y coordinate of the body.
If I want to plot the path more smoothly using least squares approximation, how should I write my code?
I'm not so sure because x does not go in one direction or increase by 1.
답변 (1개)
Ameer Hamza
2020년 12월 7일
0 개 추천
You can use sgolayfilt() or 'smoothingspline' option from curve fitting toolbox. See the answers here for detailed discussion on this topic: https://www.mathworks.com/matlabcentral/answers/682698-curve-fit-or-spline-fit-for-a-wavy-function
카테고리
도움말 센터 및 File Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!