This is machine translation

Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Translate This Page

MathWorks Machine Translation

The automated translation of this page is provided by a general purpose third party translator tool.

MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

islinear

Determine if cfit, sfit,
or fittype object is linear

Syntax

flag = islinear(fun)

Description

flag = islinear(fun) returns a flag of 1 if
the cfit, sfit, or fittype object fun represents
a linear model, and a flag of 0 if
it does not.

Note:islinear assumes that all custom models specified
by the fittype function using
the syntax ftype = fittype('expr') are nonlinear
models. To create a linear model with fittype that
will be recognized as linear by islinear (and,
importantly, by the algorithms of fit),
use the syntax ftype = fittype({'expr1','expr2',...,'exprn'}).