%% Obaining mean and std of a matrix as well as a vector, Program # 2. First for
% a n by n matrix with dim of "n". b is the vector that we are seeking it
% it mean and standard of deviation. Sam Gordji modified 7/14/08
% For seminars to be offered in Fall of 08. First illustrate matrix inversion.
%%
n=5
a=rand(n)
m=mean(a)
s=std(a)
med=median(a)
b=[1 2 3 4 4 4 4 4 4 5 6 7 8 9 10]
m1=mean(b)
med2=median(b)
modeb=mode(b)
s1=std(b)
%%
% Note b is a vector.
%%