Documentation

This is machine translation

Translated by Microsoft
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.

coeffnames

Coefficient names of cfit, sfit, or fittype object

Syntax

coeffs = coeffnames(fun)

Description

coeffs = coeffnames(fun) returns the coefficient (parameter) names of the cfit, sfit, or fittype object fun as an n-by-1 cell array of character vectors coeffs, where n = numcoeffs(fun).

Examples

f = fittype('a*x^2+b*exp(n*x)');
ncoeffs = numcoeffs(f)
ncoeffs =
     3
coeffs = coeffnames(f)
coeffs = 
    'a'
    'b'
    'n'
Was this topic helpful?