Write a program ,using function to find the median for the values x ,where x=[8 1 2 9 5]. ‏

Write a program ,using function to find the median for the values x ,where x=[8 1 2 9 5]. ‏

댓글 수: 2

Homework....what have you tried?
x=[8 1 2 9 5]
y= median (x)
solve
x= 8 1 2 9 5
x= sort (x)
x=1 2 5 8 9
y= 5

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

답변 (1개)

Felipe Bayona
Felipe Bayona 2020년 9월 3일
This forums are not to solve your homeworks, are to solve problems and questions when using MATLAB
For that read the documentation about functions in MATLAB
and look for a good definition of what is a median value.
MATLAB has its own implementation for that function, but it seems your homework is to do it by yourself
Good luck

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

릴리스

R2019a

태그

질문:

2020년 9월 3일

댓글:

2020년 9월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by