Logarithmic, Power, and Exponential Fit
Afficher commentaires plus anciens
I am trying to find the slope and intercept values for a Logarithmic, Power, and Exponential fit for my X and Y data series. I am looking for the r^2 value as well. This is the code I used in 2013, which isn't working for me anymore:
[sl,in]=logfit(x,y,'logx') %log fit
[sl,in]=logfit(x,y,'loglog') %power fit
[sl,in]=logfit(x,y,'logy') %exponential fit
The command window says it does not recognize the 'logfit' command, then asks if I meant 'lognfit'. When I change the command to 'lognfit' the output says "X and CENSORING must have the same size."
Any advice?? I have the student version of Matlab.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Interpolation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!