Question: ) write the command that will create matrix A shown in the format below using the commands (colon operator, ones, zeros, and linspace) for sws
) write the command that will create matrix A shown in the format below using the commands (colon operator, ones, zeros, and linspace) for sws 1 to 4, and your K ID for the last row (5 points)-(1 pt. for each command and syntar) A= 1 2 3 4 5 6 1 1 1 1 1 1 0 0 0 0 0 0 if your K-ID = K00789012 5 10 15 20 25 30 7 8 9 0 1 2 (b) Now write the commands that will access and extract the first and last row of matrix A to create a matrix B. Create matrix C by adding scalar value to the matrix B. What is the size of matrix C (5 points)-(2pts. each for matrices Band C Ipt. for size of C) ( What is the outcome of the codes P=A(2:5,3-6) and Q-[AC 2:5);A(4,1:4)? What is the size of the matrices (5 points) pt. each for matrice Pand Q. 1 pt. forse) (d) What is the outcome of the codes RA(2:4,15).[15:5:35]) and 5-[A(end 2)-[13:1017? What is the length of the matrices (5 points)-(2 pts. Each for matrices and Q. 1 pt. for length)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
