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)
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])']
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
