A Novel Approach to the Investigation of Molecular Polarization Using MATLAB Application