Estimating custom function parameters in Matlab
<p>I have a set of data, which is distributed like on the picture below.
<a href="https://i.stack.imgur.com/bRRFC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bRRFC.jpg" alt="data"></a></p>

<p>It clearly looks, like a function:</p>

<pre><code>k1*(1-e^(-t/T1))-k2*(1-e^(-t/T2)).
</code></pre>

<p>Is there a method provided in Matlab, to estimate parameters in this kind of function or do you have any ideas of estimating them in code to avoid doing it 'manually'?
Thanks.</p>