How would I write functions to calculate the Mean, Median and Standard Deviation?

3 vues (au cours des 30 derniers jours)
Thomas Stokes
Thomas Stokes le 14 Avr 2015
Commenté : Image Analyst le 28 Avr 2015
The task says "Although MATLAB comes with a set of built in functions to calculate means, medians and modes; your first task is to write three separate functions that return these values when given any array. You can not call the MATLAB functions to solve these inside of your own function." Any help would be appreciated. Thanks.
  2 commentaires
pfb
pfb le 14 Avr 2015
this sounds like a homework. You should first of all refer to the definitions of mean, median and std deviation.
Take a look e.g. at the documentation for mean and std in matlab.
Type "doc std" then enter.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by