Suppose x takes on the values x 1 12 14 5 Use MATLAB to co

Suppose x 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. number of elements in y: number = the third elements in array y: y(3) =

Solution

>> x = 1:0.2:5;
>> y = 7*sin(4*x);
>> length(y)

ans =

    21

>> y(3)

ans =

   -4.4189

 Suppose x 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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site