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

2 vues (au cours des 30 derniers jours)
nour satar
nour satar le 3 Sep 2020
Commenté : nour satar le 3 Sep 2020
Write a program ,using function to find the median for the values x ,where x=[8 1 2 9 5]. ‏
  2 commentaires
KSSV
KSSV le 3 Sep 2020
Homework....what have you tried?
nour satar
nour satar le 3 Sep 2020
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

Connectez-vous pour commenter.

Réponses (1)

Felipe Bayona
Felipe Bayona le 3 Sep 2020
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

Catégories

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

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by