### [Solved] Replace the following Matlab matrix assignment statements in vectorized forms by equivalent FOR (4 points each)

Replace the following Matlab matrix assignment statements in vectorized forms by equivalent FOR (4 points each) and WHILE (6+6 = 12 points each) loops. Develop two versions of WHILE loop, one with an infinite loop and a BREAK statement, the other without. a. a = [1 : 7 : 91] b. c = a(2 : 3 : 9) c. b = a(10 : -2: 2) d. d(1 : 2 : 10) = a(1:5) e. g(1:3, 1:4) = [11 : 14; 21 : 24; 31 : 34]

**Expert Answer**

Answer to Replace the following Matlab matrix assignment statements in vectorized forms by equivalent FOR (4 points each)…

OR