I have an electrical signal sampled at 1Hz which is punctuated by events occurring at known times. What I would like to do is determine a method to extract the time constants (using an optimal curve fitting based method) or rates of change (using some form of numerical differentiation) at these transitions. The change appears (from inspection) to rise rapidly at the beginning of the event, saturate and then decay at the end of the event (somewhat like the exponential rise and decay in an RC circuit). The problem is that the signal is noisy and is sampled in discrete time. Can anyone advise as to how I might fit this curve in MATLAB or point me to a resource for dealing with this sort of data in MATLAB? I have basically all of the toolboxes (including the signal processing toolbox) at my disposal.