poly1 gives error "insufficient data"

I'm using poly11 to fit some data and keep getting this error
Error using fit>iFit (line 269)
Insufficient data.
You need at least 2 data points to fit this model.
Do you know what causes this? Thanks. The array is called data and when I check its dimensions, it seems as if there is enough data.
[nx ny] = size(data)
nx =
9
ny =
32768
What casuses this?

3 commentaires

Mathieu NOE
Mathieu NOE le 30 Sep 2021
hello
please post the entire ode including the data
tx
Mathieu NOE
Mathieu NOE le 30 Sep 2021
sorry typo
I meant :
please post the entire code including the data
Mahesh Taparia
Mahesh Taparia le 9 Oct 2021
Modifié(e) : Mahesh Taparia le 9 Oct 2021
Hi
Can you share the code which you have used?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange

Produits

Version

R2020b

Question posée :

le 30 Sep 2021

Community Treasure Hunt

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

Start Hunting!

Translated by