MATLAB: Define a vector y to have 10 random values.

randomvector

how i define a vector y to have 10 random values.

Best Answer

y = rand(1,10)
%or
y = randi([1 10],1,10)
Related Question