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

Let x is be an array that takes on the values x=1, 1.2, 1.4...... 5. Use Matlab

ID: 3785904 • Letter: L

Question

Let x is be an array that takes on the values x=1, 1.2, 1.4...... 5. Use Matlab to compute the array y that results from the function y=7 sin (4x). Use Matlab to determine how many elements are in the array y and the value of the third element in the array y. Use matlab to determine how many elements are in the array sin (-pi/2): 0.05: cos (0). Use matlab to determine the 10^th element. Complex numbers: Let x =-7 -5i and y= 4 +3i. Use Matlab to compute x +y, x astiry and x/y. Enter and explain the result of each of the following statements. x =-3 -j astir 4, y=complex (-3, -4) x_r=real(x) x_=imag(x), z=conj(x)

Explanation / Answer

1.

x = [1:0.2:5];

y= 7 * sin(4 * x);

disp (y)

disp('Length Of Array Y Is :')

disp(length(y))

disp('3th Element in Array Y Is :')

disp(y(3))

[2]

x = sin(-pi/2) : 0.05 : cos(0)

disp (y)

disp('Length Of Array X Is :')

disp(length(x))

disp('10th Element in Array X Is :')

disp(x(10))

[3]

x = -7 - 5*i;

y = 4 + 3*i;

disp(x+y)

disp(x*y)

disp(x/y)

[4] (a) return the complex equation = -3 -4j

     (B) return equation -3 -4i

     (c) return real part of x_r = -3

   (d) return image part of x _i= -4

(e) return conjcate of z = -3 + 4j