Skip to content

est_gamma.m

Basic Information

  SYNTAX:  [gam_est, zfit] = est_gamma(z_data,t_data,dtsm,iplot,fig_num1)

  PURPOSE:  Estimate growth rate for exponential function of form
        z(t) = z00 + dz0*exp(gamma*t)

  INPUTS:
    z_data = z(t) data
    t_data = t vector
    dtsm = time interval for smoothdt (same units as t_data)
    iplot = flag to enable plotting: 1=plots,0=no plots(def) (optional)
    fig_num1 = first fig number to use, increments from there
            (optional, default = 1)

  OUTPUTS:
    gam_est = estimated growth rate (rad/units of t_data)
    zfit = fitted z(t) to test

  RESTRICTIONS:
    Units of dtsm must be same units as t_data

  METHOD:
    Take derivative of smoothed signal to eliminate z00, smooth, take deriv
    of log of that signal, average middle of signal to get gam_est.
    Then should use fit_gamma with the result...

Dependencies