Question: Create the following vector A. A = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]

Create the following vector A.
A = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]
Then using the MATLAB's built-in reshape function create the following matrix B from the vector A:
Create the following vector A.A = [1 2 3 4

By writing one command and using the colon to address range of elements (do not type individual elements explicitly), use the matrix B to:
(a) Create a nine-element column vector named Ba that contains the elements of the ftrst, third, and fifth columns of B.
(b) Create a seven-element row vector named Bb that contains elements 2 through 5 of the second row of Band the elements of the third column of B.
(c) Create a six-element row vector named Bc that contains elements 3 through 5 of the first row, and elements 2 through 4 of the third row of B.

1 4 7 10 13 16 -1258111417 3 6 9 12 15 18

Step by Step Solution

3.42 Rating (174 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc A118 BreshapeA36 dispPart a BaB1B3B5 dis... 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 (569).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!