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

Using matlab solve the following Consider the following arrays. A = [3 0 2 -6 2

ID: 3809118 • Letter: U

Question

Using matlab solve the following

Consider the following arrays. A = [3 0 2 -6 2 5 -4 9 -5 -1 -4 1] B = 6 * A + cos(5 * A) - exp(A/3) Write MATLAB expressions for each of the following operations and SHOW their numerical results. Select the third column of B. Use element-by-element addition to find the row vector that is the sum of the second row of A and the third row of B. Find the maximum value in the vector resulting from element-by-element multiplication of the second row of A with the last row of B. Use element-by-element division to divide the first three elements of the second row of A by the fourth column of B. Find the sum of the elements of the resulting vector. Raise each element in the first column of B to a power equal to 1/4 th the corresponding value in A. Sort the rows of cos(A+B) in descending order.

Explanation / Answer

(a)
B(:, 3)
Output:
-23.856
34.440
-29.198

(b)
A(2, :) + B(3, :)
Output:
9.21319 27.69671 -20.19767 0.88805

(c)
max(A(2, :) .* B(3, :))
Output:
51.393

(d)
sum(A(2, 1:3) ./ B(:, 3)')
Output:
-0.25017

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