Question: Problem 1 Create the following vector and the matrix A = [4 8 12 16 20 24] B = 4 4 4 8 8 8

Problem 1 Create the following vector and the matrix A = [4 8 12 16 20 24] B = 4 4 4 8 8 8 12 12 12 1. Using a for loop. The for loop must create the vector (A1) and matrix (B1) by adding an element each time it passes through the loop(s). 2. Using a while loop. The while loop must create the vector (A2) and matrix (B2) by adding an element each time it passes through the loop(s).
Please use MATLAB. Thank you.
Problem 1 Create the following vector and the matrix A-[4 8 12 16 20 24] B-4 44 12 12 12 Using a for loop. The for loop must create the vector (A1) and matrix (B1) by adding an element each time it passes through the loop(s) 1. 2. Using a while loop. The while loop must create the vector (A2) and matrix (B2) by adding arn element each time it passes through the loop(s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
