Dear
I try to perform the Matlab programming with certain formula equations for the Pattern Recognition as below (herewith please refer to the PDF file)
However I am not sure my answers are correct or not
Kindly please provide your opinion and suggestion thus I will be able to improve my computing skills
Prayerfully
Matlab Programming Method
(1)
x = randn (100,1);
d = 100;
n = 100;
if(x<0.25),
toss = 0; %Head
else
toss = 1; %Tail
end
y = randn (100,1);
y(x<0.25) = 1;
hist(y)
x = randn (100,1);
d = 100;
n = 100;
if(x<0.5),
toss = 0; %Head
else
toss = 1; %Tail
end
y = randn (100,1);
y(x<0.5) = 1;
hist(y)