Question: The following vector is defined in MATLAB: v = [6 11 -4 5 8 1 -0.2 -7 19 5] By hand (pencil and paper) write

The following vector is defined in MATLAB:
v = [6 11 -4 5 8 1 -0.2 -7 19 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 = [v[(1:3 7:-1 1:5]) ;v[(10,1,4:6,2])]
(b) b = [v([9, 2:4, 1])' v ([5 3 10 2 7])' v ([10: –2:4, 10])']

Step by Step Solution

3.26 Rating (178 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc v6 11 4 5 8 1 02 7 19 5 disp Part a av13 715 v101462 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (567).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!