Question: MATLAB Write a function that accepts a single input variable x that is an unknown random length (between 20 and 50 elements) column vector of
MATLAB
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.
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 1. 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 2. Generate a second column vector z in which each element of z is equal to the square of the corresponding element in x divided by 2 times the 3. Generate a scalar integer count that counts the number of instances an element in z has a value less than the value of the corresponding element maximum value in X. corresponding element in y in x. Your Function C Reset MATLAB Documentation 1 function [y, z , count] student solution(x) 3 replace the following with commands to generate the outputs y, z, and count from the input x 6 count 1; 8 end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
