Write a function that computes the average and standard deviation of a set of student grade in three different class sections. Do not use MATLAB mean and standard deviation functions. You can use the sum function. Your function should use xlread and return average grade (a) and standard deviation (s)

댓글 수: 3

James Tursa
James Tursa 2017년 2월 17일
What have you done so far? Please post your code and ask specific questions about it. Then we can help you.
Star Strider
Star Strider 2017년 2월 17일
Professors from the University of Maryland (U.S.) and the University of Tennessee (U.S.) caught out several students using MATLAB Answers for homework solutions a while back. Those are the incidents I know of.
There could be more.
I suspect it did not go well for the students.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2017년 2월 17일

0 개 추천

So did you try sum, like
theSum = sum(grades);
and do you know about the length() or numel() function? Using those, getting the mean is trivial. Hint for standard deviation:
squareGrades = grades .^ 2;

카테고리

도움말 센터 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

질문:

2017년 2월 17일

답변:

2017년 2월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by