I thank you so much for providing this code. Implementation has its own challenges but your code worked like a charm to show how beautifully theory and practice meet. With good initial estimates, the algorithm converged in only a few iterations.
FYI: I used it for T1 estimation in MR where the equations in our case were much more complicated than single exponential recovery equations.
12 Sep 2011
Command-line peak fitter for time-series signals. Version 3.6: February, 2013.
Author: Tom O'Haver
I am not sure I understand your question thoroughly but here is what you can do for transparency:
% Filled object becomes more and more transparent as the following variable [transp] goes to zero. [Max value is 1]
transp = 0.5;
You may want to check if you are playing with the axes, especially whether or not the code is making a zooming effect.
If you can't figure that out, using the clf command of matlab, or closing and reopening the figure window at each iteration should solve the problem.