Q:

A vector v is supposed to store unique random numbers. Use set functions to determine whether or not this is true

0

A vector v is supposed to store unique random numbers. Use set functions to determine whether or not this is true. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> v = randi([1 5], 1,8)

v =

 4 3 3 2 4 1 4 1

>> isequal(v, unique(v))

ans =

 0

>> v = 1:8;

>> isequal(v, unique(v))

ans =

 1

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now