Create the following vector A. A = [1 2 3 4 5 6 7 8 9 10

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]
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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: