You can modify the compare
function to fit a certain range by modifying the data inputs to the function. Here's an example of how you might modify the compare
function to estimate fit for data within a specified range:
main.m649 chars16 lines
In this modified function, you pass in xlimits
, a vector with the minimum and maximum values for the range of data for which you want to estimate fit. The function subsets the data within this range before performing the fit.
gistlibby LogSnag