modified the call to mvnpdf (to have the compatibility with old matlab)