ice prince
New member
MATLAB
Hi,
can someone please help me and advise what function from the rand functions should i use for that question:
3) Set up a vector called N with five elements having the values: 1, 2, 3, 4, 5. Using N, create a vector v3 which will be assigned one of the following value sets in a random manner (i.e. run either a, b, c, or d with equal probability) :
a. 2, 4, 6, 8, 10
b. 1/2, 1, 3/2, 2, 5/2
c. 1, 1/2, 1/3, 1/4, 1/5
d. 1, 1/4, 1/9, 1/16, 1/25
Thank you!
Hi,
can someone please help me and advise what function from the rand functions should i use for that question:
3) Set up a vector called N with five elements having the values: 1, 2, 3, 4, 5. Using N, create a vector v3 which will be assigned one of the following value sets in a random manner (i.e. run either a, b, c, or d with equal probability) :
a. 2, 4, 6, 8, 10
b. 1/2, 1, 3/2, 2, 5/2
c. 1, 1/2, 1/3, 1/4, 1/5
d. 1, 1/4, 1/9, 1/16, 1/25
Thank you!