Mathematics
Mathematics, 29.02.2020 06:11, enrique710

HW3P2 (20 points) In MATLAB Script file HW3P2.m, using format short g, do the following: Create the following three row vectors and do not display to the Command Window: a = [5 8 โˆ’ 1 0 2 โˆ’ 4] ; b = [4 1 9 โˆ’ 2 3 โˆ’ 5] ; and c = [โˆ’3 5 0 6 1 โˆ’ 7]; then using only one command, do each of the following: i. create a nine-element row vector, D, consisting of the first three elements of each of the vectors a, b, and c, respectively, i. e., [5 8 โˆ’ 1 4 1 9 โˆ’ 3 5 0]. ii. create a nine-element column vector, E, consisting from the last three elements of the vectors a, b, and c, respectively. Hint: You can use the end keyword. iii. create a matrix N where the rows of it are the variables a and b, respectively. iv. add variable c as the fourth row in matrix N. v. change the values of the third row in matrix N to be [โˆ’1 โˆ’ 2 โˆ’ 3 โˆ’ 4 โˆ’ 5 โˆ’ 6]. Use the colon operator to create this row. vi. delete the third column of matrix N. vii. using the appropriate built-in MATLAB function, determine the dimensions of matrix N and assign the output to a variable name S_N. viii. determine the number of rows and the number of columns of N and assign them to variables Nr and Nc, respectively. ix. create a six-element row vector, Ua, that contains the first three elements of the first row of N followed by the last three elements of the third row of N. x. create a six-element column vector, Uc, that contains elements 2, 4, and 5 of the second row of N, followed by elements 1, 2 and 3 of the fourth column of N.

answer
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 17:50, liluv8262
Graph y โ‰ฅ -x^2 - 1. click on the graph until the correct graph appears.
Answers: 1
image
Mathematics, 22.06.2019 00:30, tubbs45
Carl is hanging pictures in his home. there is a space on a wall that has a width of 4 feet. carl has pictures with different widths. which picture width would fit in the space on the wall? a. 46 inches b. 60 inches c. 50 inches d. 54 inches
Answers: 1
image
Mathematics, 22.06.2019 02:50, dothework
Arepresentative from plan 1 wants to use the graph below to sell health plans for his company how might the graph be redrawn to emphasize the difference between the cost per doctor visit for each of the three plans?
Answers: 1
image
Mathematics, 22.06.2019 05:30, coolkid20034
What is the rate of change between the interval x=pi and x=3pi/2
Answers: 3
Do you know the correct answer?
HW3P2 (20 points) In MATLAB Script file HW3P2.m, using format short g, do the following: Create the...

Questions in other subjects:

Konu
Biology, 27.01.2020 01:31
Konu
Physics, 27.01.2020 01:31