How to plot standard deviation contours for a bivariate normal distribution (using MATLAB) showing only seven contours from 1-σ to 7-σ ?
mu=[2 3]; %mean
Sigma=[1 1]; %standard deviation
x1 = -10:.2:10;
x2 = -10:.2:10;
[X1,X2] = meshgrid(x1,x2);
F=mvnpdf([X1(:) X2(:)],mu,Sigma); %compute Gaussian pdf
F=reshape(F,length(x2),length(x1));
contour(x1,x2,F,'ShowText','on'); %Equally spaced contour
I do not need an equally spaced contour, but rather showing only seven contours from 1σ to 7σ
https://en.wikipedia.org/wiki/Multivariate_normal_distribution The green line (3-sigmas ellipse) in Figure 1 Probability Density Function in this link shows what I want to do, but I do not know how they did it. How to plot that green line ( 3-σ) and similar lines for different sigmas.