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

IN MATLAB, using the differential and a threshold, return a 20 x 1 vector of log

ID: 3205844 • Letter: I

Question

IN MATLAB, using the differential and a threshold, return a

20 x 1 vector of logicals that tell the instructor whether or not to contact the student with low grades

% Leverage what we have learned about thresholding and filters to

% come up with a way for an instructor to notice if a student is suddenly

% having a problem in a course. When a student consistently has problems,

% the grades are low and those are easier to see. Everyone has a bad day

% on an assignment, however it is often missed. Therefore, using the

% differential and a threshold, return a

% 20 x 1 vector of logicals that tell the instructor whether or not to

% contact the student (true --> contact the student)

% Input:

% grade_info.mat (a Matlab variable file that contains grade_info)

% threshold (i.e. how much of a drop is a warning)

% Output:

% over_threshold (20 x 1 of logicals)

I created a threshold to see who has grades lower than 70 but how do I create something that contacts the student. Like maybe if they have 3 or more grades under 70, the instructor should contact them?

load('GradeInfo.mat')

filter_under = (GradeInfo <70);

under_threshold_low_temps = GradeInfo .* filter_under;

Variables Grade Info Grade Info 20x10 double 10 86 73 64 62 62 63 67 99 62 71 76 97 71 96 90 88 76 97 83 72 93 78 93 97 81 62 94 63 96 85 82 68 62 92 80 63 93 90 87 71 75 97 98 64 97 81 63 71 68 93 98 100 90 71 85 64 76 77 75 100 96 78 80 74 85 93 82 82 79 90 83 65 84 88 95 93 77 98 100 74 85 71 70 66 93 89 87 77 67 84 84 77 79 89 84 66 86 100 95 65 10 69 84 99 65 68 87 72 73 86 97 11 73 71 82 87 70 81 78 89 76 96 12 79 85 81 80 96 99 61 87 68 93 13 70 89 70 92 62 86 100 82 78 71 14 94 69 80 89 80 93 67 88 80 84 15 68 65 85 97 67 79 65 87 65 61 16 70 72 88 96 100 78 75 68 84 78 73 76 74 89 94 68 66 70 73 67 18 70 77 75 88 81 64 80 100 76 67 19 78 81 100 68 79 66 74 67 84 68 20 21 11

Explanation / Answer

Please note that we cannot answer question s using the paid softwares , however we shall answer thisusing the open source solution R

However , this looks more like a logical problem rather then a matlab/R problem

As you already have a vector of logical values telling whether a students grade was less than 70 or not.

Now once you have this say in the form of

1 0 1 0 0 0 0 1 1 1 ,

so you can sum this vector and check if the sum(logicalvector) >=3 , send an alert to the student else not.

This should give you on1 final vector that contains 1 for all the students that must be contacted by the teacher