Question: write answers in a1.txt. . Do not submit the MATLAB output of these commands 7. Write the MATLAB commands that create the following matrices using
write answers in a1.txt.
. Do not submit the MATLAB output of these commands

7. Write the MATLAB commands that create the following matrices using only the zeros, ones, and eye functions. Do not type the values explicitly. 0 1 0 0 0 0 A = lo 1 01 Lo 0 1] 1 1 1 1 11 0 1 0 0 0 B = lo 0 1 0 0 0 0 0 1 0 Lo 0 0 0 11 Then, compute the average and the sum of the values in the columns in B. 8. Write the MATLAB command using shorthand notation to create the following vector V: V=[ 10 15 20 25 30 35 40 45 50 ] Then, create a 3 x 3 matrix M from the values in V as follows: M = 110 15 201 25 30 35 40 45 50) Finally, compute the square and the square root of the value in the center of M
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
