Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given variable M that is a matrix of size 8x8, assign to variable sub the contents of the first 3 rows & last 4 columns
Given variable M that is a matrix of size 8x8, assign to variable sub the contents of the first 3 rows & last 4 columns in M Example: Input M= [10 -5 1 9 -8 -3 -7 -6 - -5 -5 7 2 -5 -1 7 -3 output sub = [ -1 2 -10 -5 -3 3 1 2 1 9 4 5 5 -3 1 -9 -9 1 6 9 -8 1 -1 -10 -3 -7 6 -4 1 -7 2 -5 3 4 5 -1 -2 -6 9 -7 7 1 10 -9 -1 -8 10 -10 6 7 8 -9 -2 -5] 9 -7 7 10 -10 6] Function Reset DMAT 1 function sub = Submatrix1(M) &change the line below so that variable sub contains the contents of the first 3 rows & last 4 columns of input M sub = M; 6 end
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started