Question: Exercise 5 (4 pts.): Fill in the table, below, with the values of counterA and counterB that are printed to screen when each of the


Exercise 5 (4 pts.): Fill in the table, below, with the values of counterA and counterB that are printed to screen when each of the Matlab codes on the next page is given the following matrix A as input. YOU MUST SHOW SoME WORK to justify the answers you enter into the table below! Work means: say where in the matrix A (row and column) you discovered each pattern that caused counterA to increment and where in the matrix A (row and column) you discovered each pattern that caused counterB to increment. DO NOT USE MATLAB to answer this question! Instead, work it out by hand. NOTE: The programs run without error. A-[0 00 10 1 1 2 2 1: 1i 01 RUNNING RUNNING RUNNING RUNNING MATLAB CODED MATLAB CODEAMATLAB CODE BMATLAB CODE C WITH ABOVE MATRIX A AS INPUT WITH ABOVE MATRIX A AS INPUT WITH ABOVE MATRIX A AS INPUT WITH ABOVE MATRIX A AS INPUT counterA value when the program finishes execution ceunterB value when the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
