plotcov(C, mu, varargin)

Version 1.0.0.0 (21.1 KB) by Paul
Visualise a 2x2 covariance matrix by plotting ellipses at 1, 2 and 3 standard deviations.
325 Downloads
Updated 10 Nov 2016

View License

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 (2025). plotcov(C, mu, varargin) (https://uk.mathworks.com/matlabcentral/fileexchange/60177-plotcov-c-mu-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Descriptive Statistics and Visualization in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0