Question: 30. By hand (pencil and paper) write what will be displayed if the followins g com mands are executed by MATLAB. Check your answers by

 30. By hand (pencil and paper) write what will be displayed

30. By hand (pencil and paper) write what will be displayed if the followins g com mands are executed by MATLAB. Check your answers by executing the mands with MATLAB. (Parts (b), (c), (a), and (e) use the vector defined in part (a).) (a) a 1:4:17 (b) b- [a (1:3) a] (c) c [a;a] that was 31. The following vector is defined in MATLAB: v6 11-4 58 1-0.2-7 19 5 By hand (pencil and paper) write what will be displayed if the following com- mands are executed by MATLAB. Check your answers by executing the com- mands with MATLAB (a) a-v (3:8) (b) bev(i,3,2:7,4,6]) () ([9, 1,5,4]) 32. The following vector is defined in MATLAB: v 611-45 81-0.2-7 19 s By hand (pencil and paper) write what will be displayed if the following com- mands are executed by MATLAB. Check your answers by executing the com- mands with MATLAB. (a) a- [v ([1:3 7:-1:5]) iv([10,1,4:6,21)1 b) ba [v( t9,2:4,11) v(t5 3 10 2 7])' v([10:-2:4,10]) '] 33. Create the following matrix A. 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 By writing one command and using the colon to address range of elements do not type individual elements explicitly), use the matrix A to: (a) Create a six-element row vector named ha that contains the elements of the second row of A. ments of the sixth column of A. ments of the third row of A and the last three element of the first row of A. (b) Create a three-element column vector named hb that contains the ele- (c) Create a five-element row vector named he that contains the first two ele

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!