Question: PROBLEM 1 In MATALB, 1 ) Degine a vector. x that contains numbers, starting from 1 2 to 1 0 2 with an increment of

PROBLEM 1 In MATALB, 1) Degine a vector. x that contains numbers, starting from 12 to 102 with an increment of 3.2) What is the size of the vector x?3) Is it a row or column vector? 4) Calculate the sum of the even-numbered elements of the vector x.5) Calculate the sum of the last 10 elements of the vector x. Hint: Use "sum" matlab to calculate the sum of a vector.
PROBLEM 2
Bivariate data include each of two variables, where each value of one of the variables is paired with a value of the other variable. One of the bivariate data examples are shown below, which present the number of hours studied per week and the corresponding GPA for students in a certain class. 1) Define a column vector x for the "Hours" varialbe and a column vector y for the "GPA" variable. 2) Sort the table (i.e., the vectors x and y) based on the ascending order of the GPA. The order of hours must match the order of the GPA. 3) Define a vector, "g35" that only contains GPA variable that is greater or equal to 3.5. Make sure to use "Relational Operations" to select elements that satisfy the inequality conditions. 4) What is the average hours that a student with 3.5+ GPA studies per week? (Use Matlab function, "mean" to compute the average).
\table[[Hours,GPA],[6,3.2],[9,3.8],[10,3.9],[13,3.6],[6,2.5],[5,2.7],[7,2.9],[19,3.9],[20,3.8],[14,3.4],[10,3.1],[7,2.6],[4,2.2],[8,2.9],[4,3.2]]
PROBLEM 1 In MATALB, 1 ) Degine a vector. x that

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 Civil Engineering Questions!