fitExponential.m

Version 1.0.0.0 (1.48 KB) by Jing Chen
Fitting with single exponential curve in the form of: yFit = yInf + (y0-yInf) * exp(-k*(x-x0))
1K Downloads
Updated 26 Jun 2012

View License

% FITEXPONENTIAL fits a time series to a single exponential curve
% [k, yInf, y0] = fitExponential(x, y)
%
% The fitted curve reads: yFit = yInf + (y0-yInf) * exp(-k*(x-x0)).
% Here yInf is the fitted steady state value, y0 is the fitted initial
% value, and k is the fitted rate constant for the decay. Least mean square
% fit is used in the estimation of the parameters.
%
% Outputs:
% * k: Relaxation rate
% * yInf: Final steady state
% * y0: Initial state
% * yFit: Fitted time series
%
% Last modified on 06/26/2012
% by Jing Chen

Cite As

Jing Chen (2024). fitExponential.m (https://www.mathworks.com/matlabcentral/fileexchange/37321-fitexponential-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0