36. Create the following vectors: u=[0 9 -5 6 3 -1 2] and w=[-2 3 7 -4...

Question:

36. Create the following vectors:

u=[0 9 -5 6 3 -1 2] and w=[-2 3 7 -4 0 1 5]

By hand (pencil and paper) write what will be displayed if the following commands are executed by MATLAB. Check your answers by executing the commands with MATLAB.

(a) A=[u(2:5);w([7 5]) u([6 7])]

(b) B=[w(4:7)', zeros(4,2), u([1 3 5 7])']

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: