Question: create with this example : Download the live script file MAT343lab1ex7.mlx and open it with matlab. Run the file and use the information provided to

create with this example : Download the live script file MAT343lab1ex7.mlx and open it with matlab. Run the file and use the information provided to complete the following exercise. For your convenience, a pdf version is also provided. A matrix G has been created for you. Extract the submatrix of consisting of columns 3 through 5 and rows 1 through 3 and store it in the matrix , that is, create a matrix by extracting the appropriate rows and columns from the matrix G. Create the matrix obtained from by replacing the current value of with 100. Do not enter explicitly. Hint: enter first E=H; to create a copy of the matrix H and then manipulate the matrix E. Create the matrix F obtained by deleting the second column of the matrix H. Do not enter F explicitly. Hint: enter first F=H; to create a copy of the matrix H and then manipulate the matrix F. Make sure you delete the column and not extract a submatrix. Don't forget to include your name as a comment in the script.

G - 10 rand (4,7); WNH * 1. Extract the 3x3 submatrix H consisting of columns 3 to 5 and rows 1 to 3 H - G(1:3, 3:5); * 2. Create the matrix E by replacing the current value of H13 with 180 E - H; * Make a copy of H E (1,3) = 100; * Replace the value of H13 with 180 * 3. Create the matrix F by deleting the second column of the matrix H F - H; X Make a copy of H F(:,2) = ; * Delete the second column 15 * Display the matrices disp( 'Matrix H:"); disp (H) ; disp( 'Matrix E:"); disp (B) ; disp ( 'Matrix F:"); disp (F) 14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!