Question: ( b ) Write a function ( m file ) takes an array and replaces and values outside of the lower and upper ranges by
b Write a function m file takes an array and replaces and values outside of the
lower and upper ranges by For example, the function could be used to remove
any invalid examination grades, where a grade could be less than zero or greater
than Make use of the vectorisation capabilities of MATLAB, and therefore a
loop should not be required for the solution. Here are sample calls, along with the
output that should be generated.
rng;
test randi;
testval validatedatatest;
test
testval
marks
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
