Description: A toolbox for fitting data-points to a line, polynomial or an exponential curve using the Least Square Approximation.

Macros:

linefit – Fit a given set of data-points to a line. Returns the fitted data points, slope and the intercept of the line.

npolyfit – To fit a given set of data points to a polynomial.

expofit – To Exponentially fit a given set of data points

lfitplot – Fit a given set of data-points to a line. Returns the fitted data points, slope and the intercept of the line and plot the original and fitted data..

pfitplot – To fit a given set of data points to a polynomial and plot the original and fitted data.

efitplot – To Exponentially fit a given set of data points and plot the original and fitted data.

Ph.D. researcher at Friedrich-Schiller University Jena, Germany. I’m a physicist specializing in computational material science. I write efficient codes for simulating light-matter interactions at atomic scales. I like to develop Physics, DFT, and Machine Learning related apps and software from time to time. Can code in most of the popular languages. I like to share my knowledge in Physics and applications using this Blog and a YouTube channel.