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

조회 수: 3 (최근 30일)
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
pfb
pfb 2015년 4월 14일
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.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by