adplus-dvertising
frame-decoration

Question

What is the output of the following code?
randi(10,1,9)

a.

9 unique values with replacement in the interval [1,10)

b.

9 values with replacement in the interval (1,10]

c.

9 unique values with replacement in the interval (1,10)

d.

9 values with replacement in the interval [1,10]

Posted under MATLAB

Answer: (d).9 values with replacement in the interval [1,10]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?