Write a MATLAB code for the problem below Write MATLAB code
Write a MATLAB code for the problem below.
Write MATLAB code which creates the vector x = [X_1, X_2, X_3, X_4, X_5] = [0.5, -72.125, 0.05, 25.127, 0.005] Calculate the vector z = [Z_1, Z_2, Z_3, Z_4, Z_5] defined by z_i = 2 Squareroot x_i^2 + (2 pi)^x_i, where i = 1, 2, 3, 4 or 5 using array arithmetic, and then calculate the maximum value of vector z.Solution
x=[0.5,-72.125,0.05,25.127,0.005]
plot(x)
for calculation of z
we assume other variable a
a=xi2+(2pi)xi
for z=1:5
z= 2*sqrt(a)
end
![Write a MATLAB code for the problem below. Write MATLAB code which creates the vector x = [X_1, X_2, X_3, X_4, X_5] = [0.5, -72.125, 0.05, 25.127, 0.005] Calcul Write a MATLAB code for the problem below. Write MATLAB code which creates the vector x = [X_1, X_2, X_3, X_4, X_5] = [0.5, -72.125, 0.05, 25.127, 0.005] Calcul](/WebImages/13/write-a-matlab-code-for-the-problem-below-write-matlab-code-1015688-1761524774-0.webp)