How to get the smooth curve data into an array after using Smoothing Spline?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using the fit function for the first time, and I notice that all the examples pass the returned object into the PLOT function. However I am not interested in plotting the results, but rather I need to get the fitted curve into an array. I don't see any documentation that show how to do this.
For example: [fitresult, gof] = fit( xData, yData, ft, opts );
When I use plot(fitresult) I get a beautiful graph, however how do I get the datapoint of that graph into an array which I can use. (I don't mean the coefficients)
댓글 수: 0
답변 (1개)
dpb
2015년 11월 18일
편집: dpb
2015년 11월 18일
Answered this a month ago on the newsgroup at http://www.mathworks.com/matlabcentral/newsreader/view_thread/342845#939612
In short, you have to "save" the model to a "fit" structure and then evaluate it at the desired locations. For some strange reason the structure saved includes the residuals but not the estimates.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Smoothing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!