Question: Let x = [ 3 1 6 9 1 2 - 1 0 - 1 2 9 6 1 ] . Provide the command (
Let x Provide the commands that will:
set values that are multiples of to make use of rem for instance a number n is a multiple of if remn equals to ;
extract the values of x that are greater than into a vector called y;
set the values in x that are less than the mean to ;
set the values in x that are above the mean to their difference from the mean.
Write your code is such a way that it works for any vector x
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
