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
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:33.2
All Answers
total answers (1)
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