Determine the size of the given arrays


Assignment

1. What is the difference between an array, a matrix, and a vector?

2. Answer the following questions for the array shown here.

1389_Array.jpg

a) What is the size of c?

(b) What is the value of c(2,3)?

(c) List the subscripts of all elements containing the value 0.6.

3. Determine the size of the following arrays. Check your answers by entering the arrays into MATLAB and using the whos command or the Workspace Browser. Note that the later arrays may depend on the definitions of arrays defined earlier in this exercise.

(a) u = [10 20*i 10+20];

(b) v = [-1; 20; 3];

(c) w = [1 0 -9; 2 -2 0; 1 2 3];

(d) x = [u' v];

(e) y(3,3) = -7;

(f) z = [zeros(4,1) ones(4,1) zeros(1,4)'];

(g) v(4) = x(2,1);

4. What is the value of w(2,1) in the w array calculated in part (c)?

5. What is the value of x(2,1) in the x array calculated in part (d)?

6. What is the value of y(2,1) in the y array calculated in part (e)?

7. What is the value of v(3) after statement (g) is executed?

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Determine the size of the given arrays
Reference No:- TGS02991461

Now Priced at $35 (50% Discount)

Recommended (99%)

Rated (4.3/5)