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.
Best Answer