title: Use of rmvnorm and dmvnorm for two variables
body: <p>I have been trying to apply this functions but I am having some problems.
  For one variable(x) I have</p>
  
  <pre><code>mean &lt;- rnorm(K,mean=mean(x),sd=sd(x)) 
  sigma2 &lt;- rep(sd(x),K)
  
  for (k in 1:K)
  {
  f[,k] &lt;- dnorm(x,mu[k],sigma2[k])     ##pdf ##
  }
  </code></pre>
  
  <p>I want to do the same but now I have a matrix(T) with two variables x and y 
  Could somebody help me, please. I am new with R. Thanks</p>