Question: 34. By hand (pencil and paper) write what will be displayed if the following commands are executed by MATLAB. Check your answers by executing the
34. 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. In parts (b), (c), (d), (e), and
(f) use the vector that was defined in part (a).
(a) a=2:2:20
(b) b=a(4:8)
(c) c=a(1:2:7)
(d) d=a(8:-1:4)
(e) e=[a(1:5);a(6:10)]
(f) e=[a(2:5)’ a(6:9)’]
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
