title: Modular Multiplicative Inverse function in matlab
body: <p>I have problem for calculate modular multiplicative inverse.
  example I have integer <code>A = 151</code> and <code>M = 541</code>. 151 mod 541. inverse mod 151 to 541 is 43
  how to calculate modular multiplicative inverse in matlab ?</p>