Question: Creating Vectors: (a) By using the linspace function, create a row vector c whose first element is 3, whose last element is 17 and which

 Creating Vectors: (a) By using the linspace function, create a row

Creating Vectors: (a) By using the linspace function, create a row vector c whose first element is 3, whose last element is 17 and which has 27 elements (columns). (b) By using the linspace function, create a column vector x whose first element is 30, whose last element is -10 and which has 13 elements (rows). Creating Vectors: (a) By using the linspace function, create a row vector d whose first element is 3, whose last element is -17 and which has 7 elements (columns). (b) By any method other than directly entering the values, create a column vector v whose first element is 30, whose last element is -10 and which has 41 elements (rows). Creating 2D arrays: (a) Create a square matrix A with 16 elements, each column of which is populated with its column number. Do not enter the elements of A directly: use another method. (b) Create a 5 times 3 matrix B which is populated by random integers between 0 and 5. Do not enter the elements of B directly: use another method. (c) Create a 3 times 7 matrix C whose first row is 7 equally spaced numbers beginning with -2 and ending with 14 and whose second and third rows are random integers between 0 and 3. Do not enter the elements of C directly: use another method. (d) Create a 4 times 3 array D, whose first 3 rows are those of the 3 times 3 identity matrix and whose last row is a row of 4's. (e) Create a 4 times 4 array E, each row of which is populated with its row number. (f) Create a 4 times 6 array F, populated with random integers between -3 and 3

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!