www.gusucode.com > curvefit 案例源码程序 matlab代码 > curvefit/CreateFitTypesforLibraryModelsExample.m

    %% Create Fit Types for Library Models  
% Construct fit types by specifying library model names.   

% Copyright 2015 The MathWorks, Inc.


%% 
% Construct a |fittype| object for the cubic polynomial library model. 
f = fittype('poly3')  

%% 
% Construct a fit type for the library model |rat33| (a rational model of
% the third degree for both the numerator and denominator). 
f = fittype('rat33')  

%% 
% For a list of library model names, see |libraryModelName|.