How to fit irregular data using Lowess/other correct method?
이전 댓글 표시
Hello, I really need some help- I have got two design variables with irrengular pattern.I wish to build a MATLAB code to establish a smooth relation and generate a relationship. I also want to plot and double-check that I have built it right. Can someone please tell how do I do it- is Lowess the best method to fit this curve? Thanks, Swanand.
답변 (1개)
Image Analyst
2016년 12월 4일
0 개 추천
Lowess is a good method if you have the curve fitting toolbox. I don't, so I use the Savitzky-Golay filter, sgolayfilt() in the Signal Processing Toolbox. Or maybe a median filter will do the trick for you. It's claim to fame is it gets rid on impulsive noise while keeping true edges sharp.
댓글 수: 2
Swanand Kulkarni
2016년 12월 4일
Image Analyst
2016년 12월 4일
You can use fitlm() or fitglm() in the Stats toolbox.
카테고리
도움말 센터 및 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!