Created simple matlab for equilibrium constant