MATLAB: How to make random vector

MATLABvector. random

how to create randon vector between the numbers -0.1 to 0.1 with the length of 100? (1*100)

Best Answer

Hi,
use
x = (2*rand(1,100)-1)/10;
Best regards
Stephan