Home / Expert Answers / Computer Science / nbsp-practice-basic-relational-logical-operators-to-find-specified-values-in-a-matrix-given-pa260

(Solved):   Practice basic relational \& logical operators to find specified values in a matrix Given ...



Practice basic relational \& logical operators to find specified values in a matrix
Given the matrix A
1. Determine all value

 

Practice basic relational \& logical operators to find specified values in a matrix Given the matrix A 1. Determine all values in \( A \) that are \( >=32 \) AND are even numbers. Assign these values to an array with variable name \( \mathbf{B} \). 2. Sort the array \( \mathbf{B} \) (in ascending order) to a row vector \( 1 \times n \). Assign this sorted array to the variable name \( \mathbf{C} \). 3. Determine the length \( (n) \) of the row vector. Assign the length to the variable name LENGTH. NOTE: The built-in magic(n) function returns an n-by-n matrix constructed from the integers 1 through \( \mathrm{n}^{\wedge} 2 \) with equal row and column sums. HINT: earlier in the semester you used the built-in function mod (in that assignment to determine if a number was divisible by seven). mod can again be used to determine if numbers in an array are even.


We have an Answer from Expert

View Expert Answer

Expert Answer


// Here is your answer The code is in MATL
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe