MATLAB: How create a random sequence random sequence Hi, I want to create a random sequence of 10 elements with values +- 2.How can i do it? BR, José Manuel. Best Answer Just -2 and 2:R = 4*round(rand(1,10)) - 2;Continuous:R = 4*rand(1,10) - 2; Related SolutionsMATLAB: I want produce a random number between 2 and 10 for example… 2+rand*(10-2) MATLAB: Random fun. round(rand+2); Related QuestionHow to create a matrix that is 10 by 10, with only integers of 1,2, and 3? and also create it randomly with these integers.How to create a vector of this outputDo we have any Fucntion which can generate +1 and -1 randomly???Generating random number from a vector
Best Answer