%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% otherFunctions_practice.m
%
% written by tancy 05/08/2017
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Question 01 

% Write a script that will do the following. 
% Create two vectors with 20 random integers in each; 
% in one the integers should range from 1 to 5, and in the other from 1 to 500. 
% For each vector, would you expect the mean and median to be approximately the same? 
% Would you expect the standard deviation of the two vectors to be approximately the same? 
% Answer these questions, and then use the built-in functions to find the minimum, 
% maximum, mean, median, standard deviation, and mode of each. 
% Do a histogram for each in a subplot.

vect1 = randi(5,20,1)
vect2 = randi(500,20,1)
vect1_mm = mean(vect1) == median(vect1)
if vect1_mm ==1
   disp('the mean and the median of vect 1 is the same')
else
   disp('the mean and the median of vect 1 is different')   
end

stdVect12 = std(vect1) == std(vect2)
if stdVect12 ==1
   disp('the stdard deviation of vect 1 and 2 is the same')
else
   disp('the stdard deviation of vect 1 and 2 is different')   
end

