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 comentarios

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

Iniciar sesión para comentar.

Respuestas (1)

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

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Etiquetas

Preguntada:

el 3 de Sept. de 2020

Comentada:

el 3 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by