Question: % Practice Exercise 8 . 1 . 7 and 8 % Consider the following array x = [ 1 1 0 4 2 6 5
Practice Exercise and
Consider the following array
x
;
a Using single index notation, use the find function to find the index numbers
of the elements in the array that contain values between and or between and
Call your result index.
index findx & x x & x ;
index index:min numelindex;
b Report the values in the array that are between and or between and
Call your answer values.
values xindex;
dispValues:;
dispvalues;
Use the length function and your results from part a or b to determine how many values in the array
meet the criteria from this problem. Name your result total
total lengthvalues;
dispTotal:;
disptotal;
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
