% T7_A1_isaac_paha

V=ceil(20*rand(1,20)); % generate random numbers of a vector
figure(1)
hist(V,10)


M=ceil(10*randn(10,10));
x=-20:0.1:20;
figure(2)
hist(M,x)

% T7_A2(a)_isaac_paha
m1=mean(V); %find the mean value of  the 1st random numbers
sprintf('the mean value is %g', m1)
S1=std(V); % finding the standard deviation of V
sprintf('the standard deviation is %g',S1)
v1=var(V);
sprintf('the Variance is %g',v1)
mini1=min(V); %give us the smallest value in the vector
sprintf('the smallest number is %g',mini1)
max1=max(V); %the biggest number in the vector
sprintf('the biggest number is %g',max1)


%T7_A2(b)_isaac_paha
m2=mean(M(:)); %this give us the mean value for the matrice
sprintf('the mean vaule is %g',m2)
S2=std(M(:)); %gives us the standard deviation for the matrix
sprintf('the standard deviation is %g',S2)
v2=var(M(:)); 
sprintf('Die Varianz ist %g',v2)
mini2=min(M(:)); %give us the smallest value in the matrix
sprintf('the smallest number is %g',mini2)
max2=max(M(:)); %the biggest number in the Matrix 
sprintf('the biggest number is %g',max2)





