Nonlinear/Statistical Curve Fitting?

1 回表示 (過去 30 日間)
tgohsu
tgohsu 2018 年 3 月 28 日
回答済み: Birdman 2018 年 3 月 28 日
Hello,
I have created some plots that show information about the number of cells and the size of the cells. On excel, the data looks like this:
The blue line is the count, the orange/gold line is the size.
From a plotting perspective, the count data is as follows:
x1 = [1 2 4 6 8 10 11 14]; y1 = [1 1.5 2 1.5 4.333333333 1.5 1.5 1];
the size data is as follows:
x2 = [ 1 2 4 6 8 10 11 14], y2 = [72.49283 80.96316 228.9255 60.36849 66.8786 88.73138 328.6935 78.67592]
I would like to create a function for both of the data sets, and then also create a function which describes both sets of data. How would I go about doing this?
Thanks for your time.
  1 件のコメント
Daniel Murphy
Daniel Murphy 2018 年 3 月 28 日
What do you mean by "create a function"? Do you want to be able to interpolate the datasets?

サインインしてコメントする。

回答 (1 件)

Birdman
Birdman 2018 年 3 月 28 日
Curve Fitting Toolbox should do what you want. See the attached figures to see how to get it done.
To import those fitted models to workspace, go to Fit->Save to Workspace.

カテゴリ

Help Center および File ExchangeCurve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by