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 Commenti

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

Accedi per commentare.

Risposte (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

Categorie

Scopri di più su Get Started with MATLAB in Centro assistenza e File Exchange

Prodotti

Release

R2019a

Tag

Richiesto:

il 3 Set 2020

Commentato:

il 3 Set 2020

Community Treasure Hunt

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

Start Hunting!

Translated by