필터 지우기
필터 지우기

percent residual

조회 수: 3 (최근 30일)
Max Bernstein
Max Bernstein 2011년 12월 12일
Hello,
I am trying to use the cftool and I got the residual plot fromt it, which is r=y-y^. Is there anyway to make it show a percent residual on the plot? (ie. how many percent the data is off from the fit curve)
Thanks!

채택된 답변

Kostas
Kostas 2011년 12월 13일
You could save your fitting values to workspace, using cftool choose analysis and there select the option evaluate fit at Xi (in your case Xi is your x) . Now if you save those results you 'll have a structure containing xi and yfit. You can calculate percent residuals r(%)=100*(yi-yifit)./yi. Just be careful in case your original data aren't sorted by x value to sort them because the output results of fitting analysis are sorted to xi.
  댓글 수: 1
Max Bernstein
Max Bernstein 2011년 12월 13일
Thanks a lot, this method worked.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by