Given vectors are:
A=[4,5,6,7,8,9,10]
B=[1,1,1,1,1,1,1]
C=[2,4,6,8,10,12,14]
D=[0,0,0,0,0,0,0]
Declare the vectors A,B,C and D in Matlab as shown below:
For Q.No:32
Answer is : X=[A;B;C;D]
Explanation:
In order to merge the given single dimensional vectors A,B,C,D into X (two dimensional vector) we use X=[A;B;C;D]
For creating a new row in a vector, we use a semicolon (;)
since A,B,C and D are single row vectors, by using command X=[A;B;C;D] will insert each of the vector's member elements into a separate row.
for eg: S=[1,2;3,4] will produce a vector a with two rows in which first row will have 1 , 2 and second row will have 3,4
For Q.No. 33
Answer is (d):All of the Above
we can clearly observe that the elements in resulting vector Y is having elements of each of the vectors A,B,C and D are inserted into Y arranged in columns.
So,In order to get the desired
result Y , we need to specify the command IN THREE POSSIBILE
WAYS:
This command transposes elements of each of the vector and puts them into resulting vector
This command puts all the vectors as rows and transposes them into columns
This command just works like a first one
For Q.No:34
Answer is : (e): all of the above
Explanation:
Vector A is having the elements 4,5,6,7,8,9,10 we can clearly see the sequential pattern of consecutive numbers from 4 to 10
This can be achieved in three ways:
Answer key:
32- b
33- d
34- e
Questions 32-34 Are based on the following vectors: A 4 5 6 7 8 9 10...
Given the matrix z = [1 5 3,2 4 6:6 9 31, what would be stored in sumofz after the following MATLAB command is executed? 33. sumofz sum (z) = a. 39 b. 9 18 12 c. 9 d. 9 12 18 e. none of the above 34. Suppose we had the two MATLAB commands below angls-[0: 0.1*pi: 2 pi] sines-sin(angles) What would be the command to plot angles on the x axis and sines on the y axis? a....
12313werqw
Honey
9 6 14 14 15 12 13 14 7 10 11 14 9 12 13 13 5 5 9 6 7 8 14 7 13
DM 5 5 12 6 11 7 13 7 7 5 6 5 9 5 13 11 13 7 10 8
control 2 4 4 3 1 9 7 4 9 8 2 8 6 4 2 5
Calculate the mean, median and mode for each of the data
(Honey, DM and Control)....
Weight in PoundsNumber of Newborns 3-4 5-6 7-8 9-10 11-12 13-14 9 Based on the frequency distribution above, find the cumulative frequency for the class with lower class limit 11 Cumulative Frequency Give your answer rounded to one decimal place Points possible: 2 This is attempt 1 of t.
Weight in Pounds 3-4 5-6 7-8 9-10 11-12 13-14 Number of Newborns 4 Based on the frequency distribution above, find the relative frequency for the class with lower class limit 7 Relative Frequency Give your answer as a percent, rounded to one decimal place
X 3 5 7 5 6 7 9 4 8 6 Y 6 9 12 10 14 12 14 8 15 10 Discuss the relation between X and Y using an appropriate method. If possible, try to find the relation between X and Y treating X as independent variable?
Consider the following hashtable: index 0 1 2 3 4 5 6 7 8 element 81 10 63 14 42 It was created with the hash function H(x) = x % 9 and uses a quadratic collision scheme. Which of the following was the order in which the elements were inserted to produce the table above? a. All of the insert orders listed here will produce the hashtable shown above. b. None of the insert orders listed here will produce...
Use the following information to answer the next two questions Four histograms are displayed below. 2 0 1 2 345 67 89 10 0 2 45 6 789 10 123 4 5 6789 10 0 1 2 34 5 6 7 8 9 10 0 Match the description to the appropriate histogram. A distribution for the second to last digit of phone numbers sampled from students in a class (i.e., for the phone number 968-9667, the second to last digit...
10 1 2 3 4 5 6 7 8 9 HHHHHHHHH $10 $10 $10 $10 $0 $10 $10 $10 $10 $10 11 12 13 14 15 16 17 18 19 20 $10 $10 $10 $10 $10 $10 $10 $10 $10 $70 What comes closest to the present value of the cash flow stream if the interest rate is 6%? a. $175 O b. $126 O c. $115 O d. $145 o e. $138
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Which of the following are not errors? (select all that apply) (a) Ho is not rejected when it is false (b) Ho is rejected when it is false (c) Ho is not rejected when it is true (d) Ho is rejected when it is true
Compute the sign of the following permutations: (a) (1, 4, 3, 6, 7)(5, 8, 9, 10). (b) σ ∈ Sn, i 7→ n + 1 − i. (c) Show that this initial configuration of the 15 puzzle is not solvable 3 1 15 13 2 8 5 9 12 7 11 4 14 6 10 − (d) Suppose that (i, j) ∈ Sn is a transposition and that i < j. Find an expression (in terms of i and j...