title: How can I use mvnrnd function in simulation?
body: <p>when using mvnrnd function we use mean and covariance matrix which is positive semi definite my question is:</p>
  
  <p>When using this function in simulation the covariance matrix sometimes is not positive semi definite how can I deal with it? Using chol function? If so how?</p>