Hello,
I have to write a MATLAB program that:
A. Generates 1000 random digits (0-9).
B. Computes the distribution of these 1000 numbers.
Print out the dist., along with the mean and variance
I think I have the answer for A, which is this:
r = floor(10.*rand(1000,1));
But I can't seem to figure out B.
Can anyone help? Thanks in advance, any help is greatly appreciated.


LinkBack URL
About LinkBacks
