フィルターのクリア

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 Center および File ExchangeGet 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