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.
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 .
MATLAB Release Compatibility
Created with
R2008a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization >
Find more on Descriptive Statistics and Visualization in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
