Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given: age = [20 14 17 23] Match each MATLAB expression with its corresponding r

ID: 3663366 • Letter: G

Question

Given: age = [20 14 17 23] Match each MATLAB expression with its corresponding result E. D any(age>19) A age>19 B all (age 19) c. find (age>19) A ans B.ans o. (age 19) D.ans E ans- QUESTION 17 Using the age vector defined in Question 16, match each description with its corresponding MATLAB command A all (age> 19) Yes or no? Is at least one value of age greater At which locations in my vector are the ages greater than 197 I only want to know those locations B.any (age>19) D Yes or no? is at least one value of age greater than 197 ns in my vector the ages grea indices). C. find (age>19) Yes or no? I am certain that none of my age values are 19 or below. D. (age > 19) 2 For each value in my list (vector) of ages, please indicate whether or not that age is greater than 19. For each value in my list (vector) of ages, please indicate whether or not that age is at most 19 E.age > 19 ·

Explanation / Answer

Based on the above given information you mailnely have the logical operators in Matlab.So i want to give a some basic information about logical operator i.e any,all,find,not..

16):

NOT:

~A performs a logical NOT of input array A, and returns an array containing elements set to either logical 1 (true) or logical 0 (false). An element of the output array is set to 1 if the input array contains a zero value element at that same array location. Otherwise, that element is set to 0.

above Not (age>19) means which is gives 0 1 1 0.not satisfiy condition simply inverse of age>19

FInd:

gives element position number that is condition satisfied position:

so find(age>19) gives satisfied positions are 20->1st position and 23->4th position.

= find(X) returns a vector containing the linear indices of each nonzero element in array age.

ALL and Any:

The all and any functions ignore any NaN values in the input arrays.

ALL:

any:Determine if any array elements are nonzero

17-quation answers order:---->B,C E A D

10) option C.you apply only on vector

Determine if all array elements are nonzero or true
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote