Q:

Create a 1 x 6 vector of random integers, each in the inclusive range from 1 to 20. Use built-in functions to find the minimum and maximum values in the vector. Also create a vector of cumulative sums using cumsum

0

 Create a 1 x 6 vector of random integers, each in the inclusive range from 1 to 20. Use built-in functions to find the minimum and maximum values in the vector. Also create a vector of cumulative sums using cumsum.

All Answers

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

vec = randi([1,20], 1,6)

min(vec)

max(vec)

cvec = cumsum(vec)

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