plotcov(C, mu, varargin)

Visualise a 2x2 covariance matrix by plotting ellipses at 1, 2 and 3 standard deviations.

You are now following this Submission

Assuming `size(X,2) == 2` then
```
plotcov(cov(X), mean(X));
```

will draw ellipses at 1, 2 and 3 standard deviations.

See also (or just run) `plotcov_demo` for an example.

Cite As

Paul (2026). plotcov(C, mu, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/60177-plotcov-c-mu-varargin), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0