islinear
判断 cfit、sfit 或 fittype 对象是否为线性对象
语法
flag = islinear(fun)
说明
示例
f = fittype('a*x+b')
f =
General model:
f(a,b,x) = a*x+b
g = fittype({'x','1'})
g =
Linear model:
g(a,b,x) = a*x + b
h = fittype('poly1')
h =
Linear model Poly1:
h(p1,p2,x) = p1*x + p2
islinear(f)
ans =
0
islinear(g)
ans =
1
islinear(h)
ans =
1版本历史记录
在 R2006b 中推出