MATLAB: Hello Please help how to generate a single random number between 6 and 8 random numbers matlab Best Answer Did you happen to look up rand() in the help and see the example:Create a vector of 1000 random values. Use the rand function to draw the values from a uniform distribution in the open interval, (50,100).a = 50;b = 100;r = (b-a).*rand(1000,1) + a;So your code would ber = 2 .* rand(1) + 6; Related SolutionsMATLAB: Random numbers help randdoc rand MATLAB: 6,8 Matrix Your way seems about right. Related QuestionDct (8*8)Extract column 1, 4-6, 8 of an 8×8 matrixMatlab Mac OS 10.6.8Puzzling syntax: 2:4:6:8:10:12
Best Answer