Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Load the file thermo scores.dat provided by your instructor. Please perform t

ID: 3666853 • Letter: 1

Question

1. Load the file thermo scores.dat provided by your instructor. Please perform the following: (a) Extract the scores and student number for student 5 into a row vector named student 5. (b) Extract the scores for Test l into a column vector named test 1. (c) Find the standard deviation and variance for each test. (d) Assuming that each test was worth 100 points, find each student's final total score and final percentage. (e) Create a table that includes the final percentages and the scores from the original table. (f Sort the matrix on the basis of the final percentage, from high to low (in descending order), keeping the data in each row together. 2. The ideal gas law, describes the behavior of many gases. When solved for v (the specific volume, m'/kg), the equation can be written Find the specific volume for air, for temperature from 100 to 1000 K and for pressures from 100 kPa to 1000 kPa. The value of R for air is 0.2870 kj/(kg K). In this formulation of the ideal gas law, R is different from every gas. Your answer should be a two-dimensional matrix. 3. Create plots of the following functions from x 0 to 10 using subplot. (a) (b) (c) (d)

Explanation / Answer

1. load thermo_scores.dat

%a

fred = thermo_scores(5,:)

%b

test_1=thermo_scores(:,2)

%c %

One approach is to extract each test

test_2=thermo_scores(:,3);

test_3=thermo_scores(:,4);

std([test_1,test_2,test_3])

% Another approach is to extract all the scores at once

var(thermo_scores(:,2:4))

%d

total = sum(thermo_scores(:,2:4)')

percentage = total/300*100

%e

table=[thermo_scores,percentage']

%f

sortrows(table,5)