Question 2 (a) Given that 1 2 3 A = 4 7 8 9 and, 1 4 1 4 B = 3 9. 7 1 2 3 Initialize variable A in MATLAB, then give the statements to get B by only using Matrix A. (b) Determine the values of X and Y...


Question 2<br>(a) Given that<br>1<br>2 3<br>A = 4<br>7<br>8 9<br>and,<br>1<br>4<br>1<br>4<br>B =<br>3<br>9.<br>7<br>1<br>2<br>3<br>Initialize variable A in MATLAB, then give the statements to get B by only using Matrix A.<br>(b) Determine the values of X and Y from the following MATLAB code. Show your answer step-<br>by-step.<br>a= [8 16 20; 100 2 21; 11 9 13]<br>b=[1 3 5; 2 4 8; 7 6 9]<br>X = [1:2:5; a(b)]<br>Y = b(a([1 5 6]))<br>

Extracted text: Question 2 (a) Given that 1 2 3 A = 4 7 8 9 and, 1 4 1 4 B = 3 9. 7 1 2 3 Initialize variable A in MATLAB, then give the statements to get B by only using Matrix A. (b) Determine the values of X and Y from the following MATLAB code. Show your answer step- by-step. a= [8 16 20; 100 2 21; 11 9 13] b=[1 3 5; 2 4 8; 7 6 9] X = [1:2:5; a(b)] Y = b(a([1 5 6]))

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here