Menu

(Solved) : Write Answers A1txt Submit Matlab Output Commands Q43915209 . . .

write answers in a1.txt.

. Do not submit the MATLAB output of these commands

Write the MATLAB commands that assign 44 and 3 to the variables x and y, respectively. Then, 5. х create a column vector W wi

Write the MATLAB commands that assign 44 and 3 to the variables x and y, respectively. Then, 5. х create a column vector W with the elements 2п х In(xy) Vy+x y! V(x+ y)3 — (у — х)2 х where y! is the factorial of y, for which you should use a built-in MATLAB function, and In(x) is the natural logarithm of x. Finally, compute the average of the elements in W. 6. Write the MATLAB commands that create the following matrix by using shorthand methods for creating vectors with constant spacing. Do not type individual elements explicitly. 3 13 11 20 16 11.8 12.6 13.4 14.2 15 12 8. A = 11 -6] -1 -2 -3 -5 -4 Then, do the following: • Create a variable x by assigning the value in the 4h row and 3rd column of A to x. Do not type the value explicitly. Create a row vector X4 by assigning the 4h row of A to X4. Do not type the values explicitly. Create a 2 x 3 matrix named M that contains the elements of A in the 2″d and 3rd rows, and the 3rd to 5th columns. Do not type the values explicitly. Show transcribed image text Write the MATLAB commands that assign 44 and 3 to the variables x and y, respectively. Then, 5. х create a column vector W with the elements 2п х In(xy) Vy+x y! V(x+ y)3 — (у — х)2 х where y! is the factorial of y, for which you should use a built-in MATLAB function, and In(x) is the natural logarithm of x. Finally, compute the average of the elements in W. 6. Write the MATLAB commands that create the following matrix by using shorthand methods for creating vectors with constant spacing. Do not type individual elements explicitly. 3 13 11 20 16 11.8 12.6 13.4 14.2 15 12 8. A = 11 -6] -1 -2 -3 -5 -4 Then, do the following: • Create a variable x by assigning the value in the 4h row and 3rd column of A to x. Do not type the value explicitly. Create a row vector X4 by assigning the 4h row of A to X4. Do not type the values explicitly. Create a 2 x 3 matrix named M that contains the elements of A in the 2″d and 3rd rows, and the 3rd to 5th columns. Do not type the values explicitly.

Expert Answer


Answer to write answers in a1.txt. . Do not submit the MATLAB output of these commands…

OR