% dataset_generate.m
% Generate two-class datasets using random number generators with 
% multivariate Gaussian distributions
% Dr. W. David Pan, UAH

clear all;
close all;

M = 100;   % number of samples generated for each class
data = zeros(2*M, 2);
label = zeros(2*M, 1);

% Generate data entries for Class 1
m1 = [3,3];
c1 = [2,0;0,2];
rng default  % For reproducibility
r1 = mvnrnd(m1,c1,M);
data(1:M,:) = r1;
label(1:M) = 1;

% Generate data entries for Class 2
m2 = [9,9];
c2 = [2,0;0,2];
rng default  % For reproducibility
r2 = mvnrnd(m2,c2,M);

data(M+1:2*M,:) = r2;
label(M+1:2*M) = 2;

