title: intersection of two curves in matlab
body: <p>I have to find the two intersection points of <code>pdf</code> function of normal distribution.</p>
  
  <p>I have calculated all the point (x,y) for the curves by <code>iy = pdf('normal', ix, mu, sd)</code> and plotted them on the screen which has two intersection points.<br>
  I have tried <code>fzero</code> function but it does not work the means and standard deviations are different for both curves so the length of the arrays are different.<br>
  I tried simplest logic two for loops but it did not work either.</p>
  
  <p>The <strong>brute force approach did not work for me</strong> because of the precision in matlab it does not consider 24.000 and 24.001 for example and the resulting values from the gaussian has 15 integers after decimal point which made it impossible for matlab to check for equality. </p>