| Curve Fitting Toolbox™ | ![]() |
set(options)
s = set(options)
set(options,fld1,val1,fld2,val2,...)
set(options,flds,vals)
set(options) displays all field names of the fit options structure options. If a field has a finite list of possible string values, these values are also displayed.
s = set(options) returns a structure s with the same field names as options. If a field has a finite list of possible string values, the value of the field in s is a cell array containing the possible string values. If a field does not have a finite list of possible string values, the value of the field in s is an empty cell array.
set(options,fld1,val1,fld2,val2,...) sets the fields specified by the strings fld1, fld2, ... to the values val1, val2, ..., respectively.
set(options,flds,vals) sets the fields specified by the cell array of strings flds to the corresponding values in the cell array vals.
Create a custom nonlinear model, and create a default fit options structure for the model:
f = fittype('a*x^2+b*exp(n*c*x)','problem','n');
options = fitoptions(f);Set the Robust and Normalize fields of the fit options structure using field name/value pairs:
set(options,'Robust','LAR','Normalize','On')
Set the Display, Lower, and Algorithm fields of the fit options structure using cell arrays of field names/values:
set(opts,{'Disp','Low','Alg'},...
{'Final',[0 0 0],'Levenberg'})![]() | probvalues | smooth | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |