Undefined function or method 'fitoptions' for input arguments of type 'char' ?

2 Ansichten (letzte 30 Tage)
Joe
Joe am 30 Sep. 2016
Beantwortet: Jan am 30 Sep. 2016
Having trouble using fitoptions function:
Undefined function or method 'fitoptions' for input arguments of type 'char'
r=r.*33.*.5;
theta=theta.*(pi/180)+pi/2;
[x,y,zz] = pol2cart(theta,r,z);
ft = 'linearinterp';
opts = fitoptions( ft );
opts.Normalize = 'off';
[fitresult, gof] = fit( [x, y], zz, ft, opts );
[EDITED, Jan, please format you code - Thanks]

Antworten (1)

Jan
Jan am 30 Sep. 2016
Do you have the Curve Fitting Toolbox? See output of:
ver

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by