Effacer les filtres
Effacer les filtres

Error message for the commands followed from example for exponential fit

1 vue (au cours des 30 derniers jours)
Ramakrishnan Vaidyanathan
Ramakrishnan Vaidyanathan le 15 Juil 2017
I used the the following example from MATLAB examples, but gives an error
x = (0:0.2:5)'; y = 2*exp(-0.2*x) + 0.1*randn(size(x)); f = fit(x,y,'exp1')
plot(f,x,y)
Undefined function 'fit' for input arguments of type 'double'

Réponses (1)

Walter Roberson
Walter Roberson le 15 Juil 2017
fit() requires that you have the Curvefitting Toolbox installed and licensed.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by