Question: Question 3 Let x be a numeric vector. Create a new vector y which consists of all entries of x between - 3 and 3
Question
Let x be a numeric vector. Create a new vector y which consists of all entries of x between and including and in order of appearance as in the vector x For example, if
x c
then, printing y should read
y
Similarly to the previous problem, we create a function extract within which you need to type y in terms of x so that for various vectors x the output extractx always gives the entries of x that are between and including and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
