メインコンテンツ

type

R2026b

cfit、sfit、または fittype のオブジェクトの名前

構文

name = type(fun)

説明

name = type(fun) は、cfit、sfit、または fittype のオブジェクト fun のカスタム名またはライブラリ名 name を文字配列として返します。

例

f = fittype('a*x^2+b*exp(n*x)');
category(f)
ans =
custom
type(f)
ans =
customnonlinear

g = fittype('fourier4');
category(g)
ans =
library
type(g)
ans =
fourier4

バージョン履歴

R2006b で導入