MATLAB: Using rand to generate numbers

rand

Hi
I have a simple question. I understand that both a and b vectors (please see below) will generate 5 random numbers from 0 to 5 with an interval of 1 between each number. But I would like to know if there is any difference between vectors a and b or if they have the same meaning.
N=5;
a = [0:N-1]+rand(1,N)/N;
b = [0:N-1]+rand/N;
Thank you

Best Answer

Is this homework?
If so, I suggest you read
doc rand
and see what the difference is between the syntax
rand(1,N)
and
rand