This is a common problem discussed in the forum. Search for solutions. See e.g. [code]? Error using ==> chol Matrix must be positive definite]
This is a common problem discussed in the forum. Search for solutions. See e.g. [code]? Error using ==> chol Matrix must be positive definite]