Azzera filtri
Azzera filtri

percent residual

3 visualizzazioni (ultimi 30 giorni)
Max Bernstein
Max Bernstein il 12 Dic 2011
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!

Risposta accettata

Kostas
Kostas il 13 Dic 2011
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 Commento
Max Bernstein
Max Bernstein il 13 Dic 2011
Thanks a lot, this method worked.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with Curve Fitting Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by