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

So I have an Excel file, which I have already imported in MATLAB. The file consi

ID: 3663658 • Letter: S

Question

So I have an Excel file, which I have already imported in MATLAB. The file consists of 1000 grades that a class has received on their last exam ( so basically 1000 different values). What I have to do is write this equation below in MATLAB.

The input Excel file that has the grades is named "Grades".

I also know that the final value of this equation should be zero. All I need is the code, which I believe should be fairly easy to write but I am just not aware of MATLAB at all.

I suppose that the x bar is supposed to be the mean of the grades?

This is the code that I have so far but it definitely does not work as I want it to work:

N=length(Grades);
xbar=sum(Grades)/N;
summen=0;
for i=1:length(N);
summen=summen+(i-xbar);
end
summen

Thank you!!! I would really appreciate some help on this!

Explanation / Answer

Hi buddy!

Hope you know how to import . If you dont know follow this step:- 1

The file named "myfile01.xlsx". File stored in My computer location " C:UsersdonDocumentsmyfile01.xlsx"

way:- 1 use importdata tool. Give the source file path (or )

way:- 2

% to find the mean for the given values

% xbar is equal to M

N= 0;

for D = 1:K % to get all real values

output= K - M;

end

output

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote