In MATLAB there is a function called cov
. If I insert a matrix X
into cov
like this cov(X)
, then cov
will return a square matrix of covariance.
My question is very simple:
How can I, with MATLAB, plot that matrix cov(X)
onto a 2D
plot like this.
I can see a lot of covariance matrix plots at Google. But how do they create them?