coeffvalues
cfit
또는 sfit
객체의 계수 값
설명
예제
2차 다항식 곡선의 계수 값 구하기
census.mat
파일의 데이터를 불러온 다음 2차 다항식 곡선에 대한 fittype
을 생성합니다.
load census f = fittype('poly2');
fittype
객체 f
에 대한 계수 이름과 식을 가져옵니다.
coefficientNames = coeffnames(f)
coefficientNames = 3x1 cell
{'p1'}
{'p2'}
{'p3'}
formula(f)
ans = 'p1*x^2 + p2*x + p3'
데이터에 곡선을 피팅하고 계수 값을 가져옵니다.
c = fit(cdate,pop,f); coefficientValues = coeffvalues(c)
coefficientValues = 1×3
104 ×
0.0000 -0.0024 2.1130
입력 인수
fun
— cfit
객체 또는 sfit
객체
cfit
| sfit
계수를 계산하려는 객체로, cfit
객체 또는 sfit
객체로 지정됩니다.
출력 인수
coeffvals
— 계수 값
스칼라 | 벡터
cfit
객체 또는 sfit
객체 fun
의 계수 값으로, 스칼라 또는 벡터로 반환됩니다.
버전 내역
R2006a 이전에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)