image thumbnail

Fit Logistic Curve to a Data Set

version 1.1.0.0 (11.7 KB) by Varuna De Silva
This is a Matlab GUI, that will try to fit a logistic function to a given set of data.

2.2K Downloads

Updated 15 Feb 2012

View License

The method used in this work is based on a tutorial by David Arnold.

http://online.redwoods.cc.ca.us/instruct/darnold/diffeq/logistic/logistic.pdf

RUN The Logistic.m this will bring up the GUI.

1. Give the x values on a text file in column format
2. Give the y values on a text file in col format
3. 'Plot Initial' Button will plot the distribution
4. 'Find Fit' button will find the best fit
5. 'Reset' will remove the plot (Although I wanted to clean all the fields - did not have time)
5. K, G, Dm are the values in the following equation

y = K./(1+exp(-G*(x-Dm)));

6. SSE gives the sum of squred error between the fitted function and the actual data
7. CC give the correlation co-efficient between the fitted function and actual data

Cite As

Varuna De Silva (2021). Fit Logistic Curve to a Data Set (https://www.mathworks.com/matlabcentral/fileexchange/31399-fit-logistic-curve-to-a-data-set), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
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!