Write a function that accepts a single input variable x that is an unknown random length (between 20 and 50 elements) column vector of random numbers with values between -50 and 50.
Don't use plagiarized sources. Get Your Custom Essay on
Answered! Using Matlab Write a function that accepts a single input variable x that is an unknown random length (between 20 and 50…
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
Generate a column vector y with the same number of elements as x that has evenly spaced values ranging from the minimum value in x to the maximum value in x.
Generate a second column vector z in which each element of z is equal to the square of the corresponding element in xdivided by 2 times the corresponding element in y.
Generate an unsigned 8-bit scalar integer count that counts the number of instances an element in z has a value less than the value of the corresponding element in x.