Category Archives: Matlab

[Matlab] Generating random numbers with given covariance matrix

We are given a covariance matrix, and we’d like to generate n vectors, whose coordinates’ covariance matrix is equal to given. We also like each coordinate to have given mean. Here is a code: function numbers = randomcov(n, covMatrix, offset) … Continue reading

Posted in AI, Matlab | Leave a comment