Skip to content

Fitting Data to a Model

Although we frequently need to fit our data to a model, its a little tricky to get right in MATLAB. I wrote a brief code example to get you started.

My code example is self-contained and illustrates how one might fit the MSD curves for a diffusing molecule.