两类正太分布
mu = [2, 3];
sigma = [1, 0; 0, 2];
X1 = mvnrnd(mu, sigma, 100);
plot(X1(:, 1), X1(:, 2), 'r+')
hold on
mu = [7, 8];
X2 = mvnrnd(mu, sigma, 100);
plot(X2(:, 1), X2(:, 2), '+')
mu = [2, 3];
sigma = [1, 0; 0, 2];
X1 = mvnrnd(mu, sigma, 100);
plot(X1(:, 1), X1(:, 2), 'r+')
hold on
mu = [7, 8];
X2 = mvnrnd(mu, sigma, 100);
plot(X2(:, 1), X2(:, 2), '+')