MATLAB help mean and standard deviation

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 comentarios

James Tursa
James Tursa el 17 de Feb. de 2017
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 el 17 de Feb. de 2017
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.

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 17 de Feb. de 2017
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;

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 17 de Feb. de 2017

Respondida:

el 17 de Feb. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by