필터 지우기
필터 지우기

How to plot a simple curve fitting in Matlab?

조회 수: 1 (최근 30일)
Ayob
Ayob 2016년 1월 1일
답변: KSSV 2016년 1월 1일
Hi
I'm trying to use Matlab curve fittings. I used X=[1,2,3] and Y=[3,4,5] as known data and the codes introduced below:
f=fit(X,Y,'poly2')
plot(f,X,Y)
But it doesn't work! How should I edit it?

채택된 답변

KSSV
KSSV 2016년 1월 1일
Make X and Y a column vector. Or use f=fit(X',Y','poly2') ;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by