Fit Tab

Fit theoretical functions to your data waves, such as a line, exponential, polynomial, or Gaussian function. This tab utilizes Igor’s pre-exising Curve Fitting algorithm FuncFit, and is similar to Igor’s Curve Fitting panel (Igor Menu/Analysis/Curve Fitting...), but works within the framework of NeuroMatic.

Add your own fit functions using NeuroMatic fit functions (e.g. NMAlpha, NMSynExp3) as templates.

>> Fit Waves are now created inside Subfolders by default.


Function – select a function to fit to your data wave (e.g. line, Poly, Gauss, Exp, Sigmoid, Power). The Fit Coefficients Table will appear.

Data Options – set the range (xbgn, xend) over which to perform the curve fit. To fit between graph cursors, place Igor’s cursors A and B on the active wave in the current Channel Graph and check cursors. Alternatively use NeuroMatic’s Channel Graph drag waves (vertical dashed red lines) to set the range. Check weighting to compute weighted fits. Standard deviation values must reside in waves with the same name of the waves to be fit, but with “Stdv_” as the prefix name (e.g. wave “Stdv_RecordA0” that contains standard deviation values for wave “RecordA0”).

Output Options – final fit waves are displayed on top of your data wave in the active Channel Graph. Control their appearance here:

    Full Graph Width – check if you want the fit waves to span the entire width of the display graph.

    Points – enter the number of points of the final fit wave. Enter “auto” for the default Igor option.

    Save – check to save the final fit waves. Waves will be saved in the current NeuroMatic Data Folder with prefix name “Fit_” (e.g. wave “Fit_RecordA0”).

    Residuals – check to compute/display fit residuals. Residual waves will be saved in the current NeuroMatic Data Folder with prefix name “Res_” (e.g. wave “Res_RecordA0”).

    Graph Now – compute the fit wave based on initial coefficient guesses (wave FT_guess).

Execute – compute the curve fit. Results can be saved to a table.

    Fit – compute the fit.

    Fit All – compute the fit to all currently selected channels and waves (7), saving values to a table.

    Save – save current fit results to a table.

    Plot All – plot all data and fit waves.

    Clear – clear current fit results from the output table.

    Clear All – clear all output table values.

    Auto Fit – check to automatically compute the curve fit when incrementing through your data waves (3).

    Print Results – print fit results to Igor’s history window.

    Configs – see Configurations for the Fit Tab for more options (MaxIterations, Tolerance, MultiThreads, FitMethod, WeightingWavePrefix).


The Fit Coefficients Table contains the following input/output waves for computing the curve fit:

    FT_cname – contains the coefficient names used for displaying the fit results and creating names for the fit output waves. These names can be changed here in the table to suit your needs.

    FT_coef – contains the coefficient result values.

    FT_sigma – contains the coefficient sigma (error) values.

    FT_guess – contains the coefficient initial guess values (optional).

    FT_hold – contains the hold coefficient parameter. Enter 1 to hold a particular coefficient at its initial guess. You must enter a guess value for the parameter.

    FT_low – contains the lower limit for coefficient parameter (enter NaN for no limit).

    FT_high – contains the upper limit for coefficient parameter (enter NaN for no limit).


A NeuroMatic Channel Graph showing a curve fit (solid red line) of a double exponential function (DblExp_Offset) to the decay phase of an EPSC (black line). Drag waves (dashed red lines) were used to set the time limit parameters xbgn and xend. Results are displayed in the Fit Coefficients table shown above.