cftool error: output argument "fitobj" (and maybe others) not assigned during call to to "/Applicat​ions/MATLA​B_R2010b.a​pp/toolbox​/curvefit/​curvefit/f​it.m>iCurv​eInterpola​tion".

I'm using the shape-preserving interpolant to fit my data with exclusion rules created graphically in cftool. I have 25 data sets with 1191 points of elevation vs latitude each. All the data sets plot in cftool with no problems and I was able to make exclusion rules. For 6 of my 25 data sets I was able to get a fit without any error. The rest of the data sets all returned this error: Fit could not be computed due to error: Output argument "fitobj" (and maybe others) not assigned during call to "/Applications/MATLAB_R2010b.app/toolbox/curvefit/curvefit/fit.m>iCurveInterpolation".
The data sets are identical in format, so I don't understand why some worked successfully. Any idea what I'm doing wrong? Thanks!
by the way, I'm using MATLAB 7.11.10 (R2010b)

Answers (1)

This happens if you have non-unique values in your data. I think as of R2011a it can account for them..

Categories

Asked:

on 21 Jun 2012

Community Treasure Hunt

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

Start Hunting!