title: Matlab Finding Damped Sine wave decay factor for a given frequency
body: <p>how to find decay constant value of a damped sine wave for a given frequency in matlab?</p>
  
  <pre><code>t=0:1e-6:0.1;
  f= 500000;
  y=sin(2*pi*f*t).*exp(-d*t);
  </code></pre>
  
  <hr>
  
  <p>i want to solve above equation for "d"</p>